mirror of
				https://github.com/gristlabs/grist-core.git
				synced 2025-06-13 20:53:59 +00:00 
			
		
		
		
	Fixes linking "srcSection disposed" bug (#670)
Test "RawData should remove all tables except one (including referenced summary table)" was failing with error: "this._srcSection.activeRowId is not a function" added an extra isDisposed check to catch it
This commit is contained in:
		
							parent
							
								
									5d7ef23433
								
							
						
					
					
						commit
						5a4433c60c
					
				| @ -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; | ||||
|       } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user