From 9662cae4ad0c258c98caca75450c3240c4cdb8f1 Mon Sep 17 00:00:00 2001 From: Joel Jeremy Marquez Date: Fri, 17 Jan 2025 10:49:00 -0800 Subject: [PATCH] Revert ConfirmChangeDirectoryDir --- .../components/modals/manager/ConfirmChangeDocumentDir.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/desktop-client/src/components/modals/manager/ConfirmChangeDocumentDir.tsx b/packages/desktop-client/src/components/modals/manager/ConfirmChangeDocumentDir.tsx index 87f930acca4..8e5ee8a5504 100644 --- a/packages/desktop-client/src/components/modals/manager/ConfirmChangeDocumentDir.tsx +++ b/packages/desktop-client/src/components/modals/manager/ConfirmChangeDocumentDir.tsx @@ -51,7 +51,7 @@ export function ConfirmChangeDocumentDirModal({ const dispatch = useDispatch(); const restartElectronServer = useCallback(() => { - window.Actual.restartElectronServer(); + globalThis.Actual.restartElectronServer(); }, []); const [_documentDir, setDocumentDirPref] = useGlobalPref( @@ -64,7 +64,7 @@ export function ConfirmChangeDocumentDirModal({ setLoading(true); try { if (moveFiles) { - await window.Actual.moveBudgetDirectory( + await globalThis.Actual.moveBudgetDirectory( currentBudgetDirectory, newDirectory, );