From 93b44fc8f5942d938bbfa9c0b43130133a6ebe08 Mon Sep 17 00:00:00 2001 From: heheer <71265218+newfish-cmyk@users.noreply.github.com> Date: Wed, 26 Jun 2024 11:58:55 +0800 Subject: [PATCH] fix error toast (#1853) --- projects/app/src/pages/app/list/components/List.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/app/src/pages/app/list/components/List.tsx b/projects/app/src/pages/app/list/components/List.tsx index 5b757a5827a..4860d556f71 100644 --- a/projects/app/src/pages/app/list/components/List.tsx +++ b/projects/app/src/pages/app/list/components/List.tsx @@ -36,7 +36,7 @@ const ConfigPerModal = dynamic(() => import('@/components/support/permission/Con import type { EditHttpPluginProps } from './HttpPluginEditModal'; import { postCopyApp } from '@/web/core/app/api/app'; import { getTeamMembers } from '@/web/support/user/team/api'; -import { formatTimeToChatTime } from '@fastgpt/global/common/string/time'; +import { useSystemStore } from '@/web/common/system/useSystemStore'; const HttpEditModal = dynamic(() => import('./HttpPluginEditModal')); const ListItem = () => { @@ -50,6 +50,8 @@ const ListItem = () => { const [editedApp, setEditedApp] = useState(); const [editHttpPlugin, setEditHttpPlugin] = useState(); const [editPerAppIndex, setEditPerAppIndex] = useState(); + const { feConfigs } = useSystemStore(); + const editPerApp = useMemo( () => (editPerAppIndex !== undefined ? myApps[editPerAppIndex] : undefined), [editPerAppIndex, myApps] @@ -97,7 +99,7 @@ const ListItem = () => { }); const { data: members = [] } = useRequest2(getTeamMembers, { - manual: false + manual: !feConfigs.isPlus }); return (