fix: always load history on mount and reload on data change

This commit is contained in:
Christian Vidal Wolf
2026-04-23 18:47:32 +02:00
parent 7b71aa484e
commit 0eeeeb480c
+6
View File
@@ -22,6 +22,12 @@ export function HistoryView({ headers, data, onRevert, onEdit }: HistoryViewProp
useEffect(() => {
loadHistory();
}, []);
useEffect(() => {
if (data.length > 0) {
loadHistory();
}
}, [data]);
const loadHistory = async () => {