Skip to content

Commit

Permalink
fix: Always force reload to fetch latest data
Browse files Browse the repository at this point in the history
  • Loading branch information
surajshetty3416 committed Jan 3, 2025
1 parent ee1612c commit e2798f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
},
Expand Down

0 comments on commit e2798f1

Please sign in to comment.