diff --git a/app/client/components/LinkingState.ts b/app/client/components/LinkingState.ts index 7db6f134..af273e3c 100644 --- a/app/client/components/LinkingState.ts +++ b/app/client/components/LinkingState.ts @@ -308,10 +308,17 @@ export class LinkingState extends Disposable { //(we autodispose/return it at the end of the function) is this right? TODO JV return owner.autoDispose(ko.computed(() => { + if (this._srcSection.isDisposed()) { + //happened transiently in test: "RawData should remove all tables except one (...)" + console.warn("LinkingState._makeFilterObs: srcSectionDisposed"); + return EmptyFilterState; + } + //Get selector-rowId const srcRowId = this._srcSection.activeRowId(); + if (srcRowId === null) { - console.warn("_makeFilterObs activeRowId is null"); + console.warn("LinkingState._makeFilterObs activeRowId is null"); return EmptyFilterState; }