Skip to content

Build your personal knowledge base with Trilium Notes

fix(desktop/setup): not finishing setup properly

Elian Doran9ee17445a542
diff --git a/apps/client/src/setup.tsx b/apps/client/src/setup.tsx
index 7b5393450a..7c9dad57ec 100644
--- a/apps/client/src/setup.tsx
+++ b/apps/client/src/setup.tsx
@@ -167,7 +167,7 @@ function SyncInProgress({ device }: { device: "server" | "desktop" }) {
useEffect(() => {
if (stats.initialized) {
- location.reload();
+ location.href = "setup";
}
}, [stats.initialized]);
@@ -251,7 +251,7 @@ function CreateNewDocumentOptions({ setState }: { setState: (state: State) => vo
function CreateNewDocumentInProgress({ withDemo = false }: { withDemo?: boolean }) {
useEffect(() => {
server.post(`setup/new-document${withDemo ? "" : "?skipDemoDb"}`).then(() => {
- location.reload();
+ location.href = "setup";
});
}, [ withDemo ]);