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(); } },