mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Fixing bug with undoing page delation with a custom layout
Summary: Fixing a bug: When removing a page with linked sections and then undoing, there are two JS errors raised: - flexSize is not a function - getter is not a function Test Plan: nbrowser tests Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3192
This commit is contained in:
@@ -138,6 +138,10 @@ export class LinkingState extends Disposable {
|
||||
): ko.Computed<FilterColValues> {
|
||||
return this.autoDispose(ko.computed(() => {
|
||||
const srcRowId = this._srcSection.activeRowId();
|
||||
if (srcRowId === null) {
|
||||
console.warn("_simpleFilter activeRowId is null");
|
||||
return { filters: {}, operations: {}};
|
||||
}
|
||||
const values = valuesFunc(srcRowId);
|
||||
return {filters: {[colId]: values}, operations: {[colId]: operation}} as FilterColValues;
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user