Skip to content

Commit

Permalink
fix: Match wait duration with save debounce
Browse files Browse the repository at this point in the history
  • Loading branch information
surajshetty3416 committed Feb 18, 2025
1 parent 77eda5f commit df82816
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 @@ -496,7 +496,7 @@ const useStore = defineStore("store", {
async waitTillPageIsSaved() {
// small delay so that all the save requests are triggered
if (!this.savingPage) {
await new Promise((resolve) => setTimeout(resolve, 250));
await new Promise((resolve) => setTimeout(resolve, 300));
}
return new Promise((resolve) => {
const interval = setInterval(() => {
Expand Down

0 comments on commit df82816

Please sign in to comment.