Skip to content

Commit

Permalink
fix: Wait for a bit before reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
surajshetty3416 committed Jan 3, 2025
1 parent e2798f1 commit 3bc59f0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,11 @@ const useStore = defineStore("store", {
});
}
const targetWindow = window.open(`/${route}`, "builder-preview");
if (targetWindow?.location) {
targetWindow?.location.reload();
}
setTimeout(() => {
if (targetWindow?.location) {
targetWindow?.location.reload();
}
}, 100);
},
savePage() {
this.pageBlocks = this.getPageBlocks() as Block[];
Expand Down

0 comments on commit 3bc59f0

Please sign in to comment.