From 74de7f44ad7205265c9e0c0433e8e00fcc4420f6 Mon Sep 17 00:00:00 2001 From: Rizky Date: Mon, 5 Feb 2024 11:00:52 +0700 Subject: [PATCH] wip fix --- app/web/src/base/page/vi.tsx | 4 ++-- app/web/src/nova/ed/logic/ed-sync.tsx | 2 +- app/web/src/nova/vi/preview.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/web/src/base/page/vi.tsx b/app/web/src/base/page/vi.tsx index 7ec47381..d192ec65 100644 --- a/app/web/src/base/page/vi.tsx +++ b/app/web/src/base/page/vi.tsx @@ -28,8 +28,8 @@ export default page({ })(); return ; } - - if (!edInitSync(p)) { + + if (!edInitSync(p) && !p.sync) { return ; } diff --git a/app/web/src/nova/ed/logic/ed-sync.tsx b/app/web/src/nova/ed/logic/ed-sync.tsx index 80c54ffe..d627cae0 100644 --- a/app/web/src/nova/ed/logic/ed-sync.tsx +++ b/app/web/src/nova/ed/logic/ed-sync.tsx @@ -81,7 +81,7 @@ export const edInitSync = (p: PG) => { } } - if (!params.page_id && !p.page.cur.id) { + if (!params.page_id) { if (location.pathname.startsWith("/ed")) { if (!params.site_id) { db.page diff --git a/app/web/src/nova/vi/preview.tsx b/app/web/src/nova/vi/preview.tsx index b62fd54e..8d796c72 100644 --- a/app/web/src/nova/vi/preview.tsx +++ b/app/web/src/nova/vi/preview.tsx @@ -65,7 +65,7 @@ export const ViPreview = (arg: { pathname: string }) => { viRoute(p); - if (p.status !== "ready") { + if (p.status !== "ready" && p.status !== "reload") { return ; }