mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +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));
|
}, Object.values(events));
|
||||||
|
|
||||||
|
// Change in data.
|
||||||
|
useEffect(() => { tabulatorRef.current?.setData(data) }, [ data ]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div ref={containerRef} className={className} />
|
<div ref={containerRef} className={className} />
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user