mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	chore(react/collections/table): fix occasional error when initializing
This commit is contained in:
		| @@ -33,11 +33,13 @@ export default function Tabulator<T>({ className, columns, data, modules, tabula | |||||||
|             columns, |             columns, | ||||||
|             data, |             data, | ||||||
|             footerElement: (parentComponent && footerElement ? renderReactWidget(parentComponent, footerElement)[0] : undefined), |             footerElement: (parentComponent && footerElement ? renderReactWidget(parentComponent, footerElement)[0] : undefined), | ||||||
|             ...restProps, |             ...restProps | ||||||
|         }); |         }); | ||||||
|  |  | ||||||
|  |         tabulator.on("tableBuilt", () => { | ||||||
|             tabulatorRef.current = tabulator; |             tabulatorRef.current = tabulator; | ||||||
|             externalTabulatorRef.current = tabulator; |             externalTabulatorRef.current = tabulator; | ||||||
|  |         }); | ||||||
|  |  | ||||||
|         return () => tabulator.destroy(); |         return () => tabulator.destroy(); | ||||||
|     }, []); |     }, []); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user