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