Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: not found page issues (#6471)

Kilu.He567ba7d96245
diff --git a/frontend/appflowy_web_app/src/components/app/app.hooks.tsx b/frontend/appflowy_web_app/src/components/app/app.hooks.tsx
index d064b192ed..0b075b27a4 100644
--- a/frontend/appflowy_web_app/src/components/app/app.hooks.tsx
+++ b/frontend/appflowy_web_app/src/components/app/app.hooks.tsx
@@ -66,8 +66,8 @@ export const AppProvider = ({ children }: { children: React.ReactNode }) => {
return trashList?.some((v) => v.view_id === viewId);
}, [trashList, viewId]);
const viewNotFound = useMemo(() => {
- if (!viewId) return false;
- return !findView(outline || [], viewId);
+ if (!viewId || !outline) return false;
+ return !findView(outline, viewId);
}, [outline, viewId]);
const createdRowKeys = useRef<string[]>([]);