mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 13:39:01 +01:00
chore(react/collections/table): react to note changes
This commit is contained in:
parent
76e903a782
commit
ff38008207
@ -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} />
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user