From 0eeeeb480c87aeb8ebae466a8f69564c6661647f Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Thu, 23 Apr 2026 18:47:32 +0200 Subject: [PATCH] fix: always load history on mount and reload on data change --- src/components/HistoryView.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/HistoryView.tsx b/src/components/HistoryView.tsx index 859d567..a491ff7 100644 --- a/src/components/HistoryView.tsx +++ b/src/components/HistoryView.tsx @@ -22,6 +22,12 @@ export function HistoryView({ headers, data, onRevert, onEdit }: HistoryViewProp useEffect(() => { loadHistory(); + }, []); + + useEffect(() => { + if (data.length > 0) { + loadHistory(); + } }, [data]); const loadHistory = async () => {