diff --git a/web/app/components/share/chat/index.tsx b/web/app/components/share/chat/index.tsx index 31bc377668..23fc19936d 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 5602294c42..a9c77402ee 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 (