Skip to content

Commit b9a8ca9

Browse files
committed
fix: ensure page refreshes with force when alerting about outdated revisions
1 parent 0cf2177 commit b9a8ca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/app/src/client/services/side-effects/page-updated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const usePageUpdatedEffect = (): void => {
4545

4646
// !!CAUTION!! Timing of calling openPageStatusAlert may clash with components/PageEditor/conflict.tsx
4747
if (isRevisionOutdated && editorMode === EditorMode.View) {
48-
openPageStatusAlert({ hideEditorMode: EditorMode.Editor, onRefleshPage: fetchCurrentPage });
48+
openPageStatusAlert({ hideEditorMode: EditorMode.Editor, onRefleshPage: () => fetchCurrentPage({ force: true }) });
4949
}
5050

5151
// Clear cache

0 commit comments

Comments
 (0)