diff --git a/web/app/components/share/chat/index.tsx b/web/app/components/share/chat/index.tsx index 31bc3776686..23fc19936d3 100644 --- a/web/app/components/share/chat/index.tsx +++ b/web/app/components/share/chat/index.tsx @@ -570,8 +570,11 @@ const Main: FC = ({ if (appUnavailable) return - if (!appId || !siteInfo || !promptConfig) - return + if (!appId || !siteInfo || !promptConfig) { + return
+ +
+ } return (
@@ -611,7 +614,7 @@ const Main: FC = ({ )} {/* main */}
diff --git a/web/app/components/share/chatbot/index.tsx b/web/app/components/share/chatbot/index.tsx index 5602294c42c..a9c77402eee 100644 --- a/web/app/components/share/chatbot/index.tsx +++ b/web/app/components/share/chatbot/index.tsx @@ -494,8 +494,11 @@ const Main: FC = ({ if (appUnavailable) return - if (!appId || !siteInfo || !promptConfig) - return + if (!appId || !siteInfo || !promptConfig) { + return
+ +
+ } return (