From 02606ba3c7b1f72343461ee8c1e4e72b4d9ce8d0 Mon Sep 17 00:00:00 2001 From: NFish Date: Tue, 18 Mar 2025 16:09:02 +0800 Subject: [PATCH] fix: cannot update webapp copyright info --- web/app/components/app/overview/settings/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/app/components/app/overview/settings/index.tsx b/web/app/components/app/overview/settings/index.tsx index 62f3fb5a74..357d7c0196 100644 --- a/web/app/components/app/overview/settings/index.tsx +++ b/web/app/components/app/overview/settings/index.tsx @@ -29,7 +29,6 @@ import AppIconPicker from '@/app/components/base/app-icon-picker' import I18n from '@/context/i18n' import cn from '@/utils/classnames' import { useGlobalPublicStore } from '@/context/global-public-context' -import { IS_CE_EDITION } from '@/config' export type ISettingsModalProps = { isChat: boolean @@ -179,7 +178,7 @@ const SettingsModal: FC = ({ chat_color_theme: inputInfo.chatColorTheme, chat_color_theme_inverted: inputInfo.chatColorThemeInverted, prompt_public: false, - copyright: IS_CE_EDITION + copyright: !webappCopyrightEnabled ? '' : inputInfo.copyrightSwitchValue ? inputInfo.copyright