mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(core) Fixing code after core merge
Summary: Fixing code after last core-merge Test Plan: Existing Reviewers: JakubSerafin Reviewed By: JakubSerafin Subscribers: JakubSerafin Differential Revision: https://phab.getgrist.com/D4038
This commit is contained in:
parent
775b94b15a
commit
75d6b7ab30
@ -307,6 +307,12 @@ export class LinkingState extends Disposable {
|
|||||||
//Now, create the actual observable that updates with activeRowId
|
//Now, create the actual observable that updates with activeRowId
|
||||||
//(we autodispose/return it at the end of the function) is this right? TODO JV
|
//(we autodispose/return it at the end of the function) is this right? TODO JV
|
||||||
return owner.autoDispose(ko.computed(() => {
|
return owner.autoDispose(ko.computed(() => {
|
||||||
|
if (this._srcSection.isDisposed()) {
|
||||||
|
//srcSection disposed can happen transiently. Can happen when deleting tables and then undoing?
|
||||||
|
//nbrowser tests: LinkingErrors and RawData seem to hit this case
|
||||||
|
console.warn("srcSection disposed in LinkingState._makeFilterObs");
|
||||||
|
return EmptyFilterState;
|
||||||
|
}
|
||||||
|
|
||||||
//Get selector-rowId
|
//Get selector-rowId
|
||||||
const srcRowId = this._srcSection.activeRowId();
|
const srcRowId = this._srcSection.activeRowId();
|
||||||
|
@ -631,7 +631,7 @@ export function createViewSectionRec(this: ViewSectionRec, docModel: DocModel):
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.warn(err);
|
console.warn(err);
|
||||||
// Dispose old LinkingState in case creating the new one failed.
|
// Dispose old LinkingState in case creating the new one failed.
|
||||||
this._linkingState.dispose();
|
this._linkingState.clear();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user