From e2798f1250ca008e4a98f19533d61f70cb86a737 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Fri, 3 Jan 2025 18:17:32 +0530 Subject: [PATCH] fix: Always force reload to fetch latest data --- frontend/src/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/store.ts b/frontend/src/store.ts index 7f7474ad..b59b43e9 100644 --- a/frontend/src/store.ts +++ b/frontend/src/store.ts @@ -377,7 +377,7 @@ const useStore = defineStore("store", { }); } const targetWindow = window.open(`/${route}`, "builder-preview"); - if (targetWindow?.location.pathname === `/${route}`) { + if (targetWindow?.location) { targetWindow?.location.reload(); } },