mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
chore(react/collections/table): react to note changes
This commit is contained in:
@@ -52,6 +52,9 @@ export default function Tabulator<T>({ className, columns, data, modules, tabula
|
||||
}
|
||||
}, Object.values(events));
|
||||
|
||||
// Change in data.
|
||||
useEffect(() => { tabulatorRef.current?.setData(data) }, [ data ]);
|
||||
|
||||
return (
|
||||
<div ref={containerRef} className={className} />
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user