Skip to content

Commit

Permalink
fix error toast (#1853)
Browse files Browse the repository at this point in the history
  • Loading branch information
newfish-cmyk authored Jun 26, 2024
1 parent 9aa6fd4 commit 93b44fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions projects/app/src/pages/app/list/components/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand All @@ -50,6 +50,8 @@ const ListItem = () => {
const [editedApp, setEditedApp] = useState<EditResourceInfoFormType>();
const [editHttpPlugin, setEditHttpPlugin] = useState<EditHttpPluginProps>();
const [editPerAppIndex, setEditPerAppIndex] = useState<number>();
const { feConfigs } = useSystemStore();

const editPerApp = useMemo(
() => (editPerAppIndex !== undefined ? myApps[editPerAppIndex] : undefined),
[editPerAppIndex, myApps]
Expand Down Expand Up @@ -97,7 +99,7 @@ const ListItem = () => {
});

const { data: members = [] } = useRequest2(getTeamMembers, {
manual: false
manual: !feConfigs.isPlus
});

return (
Expand Down

0 comments on commit 93b44fc

Please sign in to comment.