Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: dropCurrentLayout

Vanessa8f2144b9dfab
diff --git a/app/src/util/processMessage.ts b/app/src/util/processMessage.ts
index e3bbae07bd..45f9549c02 100644
--- a/app/src/util/processMessage.ts
+++ b/app/src/util/processMessage.ts
@@ -23,7 +23,7 @@ export const processMessage = (response: IWebSocketData) => {
/// #if MOBILE
window.location.reload();
/// #else
- if (response.data.dropCurrentLayout) {
+ if (response.data?.dropCurrentLayout) {
window.location.reload();
} else {
exportLayout(true);