Skip to content

Commit c2d15bd

Browse files
fix: Wait for a bit before reloading
1 parent e2798f1 commit c2d15bd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

frontend/src/store.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,11 @@ const useStore = defineStore("store", {
377377
});
378378
}
379379
const targetWindow = window.open(`/${route}`, "builder-preview");
380-
if (targetWindow?.location) {
381-
targetWindow?.location.reload();
382-
}
380+
setTimeout(() => {
381+
if (targetWindow?.location) {
382+
targetWindow?.location.reload();
383+
}
384+
}, 200);
383385
},
384386
savePage() {
385387
this.pageBlocks = this.getPageBlocks() as Block[];

0 commit comments

Comments
 (0)