mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +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
|
||||||
});
|
});
|
||||||
|
|
||||||
tabulatorRef.current = tabulator;
|
tabulator.on("tableBuilt", () => {
|
||||||
externalTabulatorRef.current = tabulator;
|
tabulatorRef.current = tabulator;
|
||||||
|
externalTabulatorRef.current = tabulator;
|
||||||
|
});
|
||||||
|
|
||||||
return () => tabulator.destroy();
|
return () => tabulator.destroy();
|
||||||
}, []);
|
}, []);
|
||||||
|
|||||||
Reference in New Issue
Block a user