diff --git a/app/web/src/nova/ed/logic/comp/load.tsx b/app/web/src/nova/ed/logic/comp/load.tsx index b8071360..8dfbbd6e 100644 --- a/app/web/src/nova/ed/logic/comp/load.tsx +++ b/app/web/src/nova/ed/logic/comp/load.tsx @@ -85,8 +85,9 @@ export const loadCompSnapshot = async ( ); if (res) { - if (res.sv === res.diff && (res.sv as any) === "not-found") - location.reload(); + if (res.sv === res.diff && (res.sv as any) === "not-found") { + //location.reload();(); + } const diff_local = Y.encodeStateAsUpdate( doc as any, diff --git a/app/web/src/nova/ed/logic/ed-route.ts b/app/web/src/nova/ed/logic/ed-route.ts index a7ea0ca0..338602fd 100644 --- a/app/web/src/nova/ed/logic/ed-route.ts +++ b/app/web/src/nova/ed/logic/ed-route.ts @@ -80,8 +80,9 @@ export const reloadLayout = async (p: PG, layout_id: string, note: string) => { ); if (res) { - if (res.sv === res.diff && (res.sv as any) === "not-found") - location.reload(); + if (res.sv === res.diff && (res.sv as any) === "not-found") { + //location.reload();(); + } const diff_local = Y.encodeStateAsUpdate( doc as any, @@ -184,7 +185,7 @@ export const reloadPage = async ( if (page.page.id !== remotePage.id) { alert("Page ID Mismatch!\n Refreshing to preventing data loss..."); - location.reload(); + //location.reload();(); return; } if ((window as any).catch) { @@ -198,8 +199,9 @@ export const reloadPage = async ( ); if (res) { - if (res.sv === res.diff && (res.sv as any) === "not-found") - location.reload(); + if (res.sv === res.diff && (res.sv as any) === "not-found") { + //location.reload();(); + } const diff_local = Y.encodeStateAsUpdate( doc as any, @@ -246,7 +248,7 @@ export const reloadPage = async ( p.sync.code .action({ type: "flush-page-cache", page_id: page_id }) .then(() => { - location.reload(); + //location.reload();(); }); } } diff --git a/app/web/src/nova/ed/panel/popup/api/api-db.tsx b/app/web/src/nova/ed/panel/popup/api/api-db.tsx index 0a2794fc..fd7874ee 100644 --- a/app/web/src/nova/ed/panel/popup/api/api-db.tsx +++ b/app/web/src/nova/ed/panel/popup/api/api-db.tsx @@ -92,7 +92,7 @@ export const EdApiDB = ({ localStorage.removeItem(`schema-md-${p.site.id}`); _api.clear_route_cache(p.site.id); - location.reload(); + //location.reload();(); }} > Generate @@ -114,7 +114,7 @@ export const EdApiDB = ({ localStorage.removeItem(`schema-md-${p.site.id}`); _api.clear_route_cache(p.site.id); - location.reload(); + //location.reload();(); }} > DB Pull @@ -135,7 +135,7 @@ export const EdApiDB = ({ render(); alert("RESTART: OK"); _api.clear_route_cache(p.site.id); - location.reload(); + //location.reload();(); }} > Restart Server