Skip to content

A local-first personal finance app

Fix hard crash when closing budget thats synced to cloud file (#4322)

Michael Clark5f1fadb7ccf8
diff --git a/packages/desktop-client/src/components/App.tsx b/packages/desktop-client/src/components/App.tsx
index 675d01b9f8..7e6fe0d7c1 100644
--- a/packages/desktop-client/src/components/App.tsx
+++ b/packages/desktop-client/src/components/App.tsx
@@ -124,7 +124,9 @@ function AppInner() {
}
initAll().catch(showErrorBoundary);
- }, [cloudFileId, dispatch, showErrorBoundary, t]);
+ // Removed cloudFileId from dependencies to prevent hard crash when closing budget in Electron
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [dispatch, showErrorBoundary, t]);
useEffect(() => {
global.Actual.updateAppMenu(budgetId);
diff --git a/upcoming-release-notes/4322.md b/upcoming-release-notes/4322.md
new file mode 100644
index 0000000000..0a3b7b79c3
--- /dev/null
+++ b/upcoming-release-notes/4322.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [MikesGlitch]
+---
+
+Fix hard crash when closing cloud budget on Electron