From dc910e46b2da41867c92f228844ed60e89c5d363 Mon Sep 17 00:00:00 2001 From: Kilu Date: Wed, 26 Jun 2024 20:26:19 +0800 Subject: [PATCH] fix: some style --- frontend/appflowy_web_app/src/application/publish/context.tsx | 3 ++- .../src/application/services/js-services/cache/index.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/appflowy_web_app/src/application/publish/context.tsx b/frontend/appflowy_web_app/src/application/publish/context.tsx index 2ac8b1e7a8..8cc5d29990 100644 --- a/frontend/appflowy_web_app/src/application/publish/context.tsx +++ b/frontend/appflowy_web_app/src/application/publish/context.tsx @@ -67,10 +67,11 @@ export const PublishProvider = ({ } const { namespace, publishName } = info; + const res = await service?.getPublishViewMeta(namespace, publishName); if (!res) { - throw new Error('View has not been published yet'); + throw new Error('View meta has not been published yet'); } return res; diff --git a/frontend/appflowy_web_app/src/application/services/js-services/cache/index.ts b/frontend/appflowy_web_app/src/application/services/js-services/cache/index.ts index 5585c7a7bb..b83ee99444 100644 --- a/frontend/appflowy_web_app/src/application/services/js-services/cache/index.ts +++ b/frontend/appflowy_web_app/src/application/services/js-services/cache/index.ts @@ -185,6 +185,8 @@ export async function revalidatePublishViewMeta< }, name ); + + return db.view_metas.get(name); } export async function revalidatePublishView<