Skip to content

Commit

Permalink
fix: app type (#2185)
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu authored Jul 29, 2024
1 parent 23f22cd commit 856d7ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/app/src/pages/chat/components/ChatHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useContextSelector } from 'use-context-selector';
import { ChatContext } from '@/web/core/chat/context/chatContext';
import MyTooltip from '@fastgpt/web/components/common/MyTooltip';
import { InitChatResponse } from '@/global/core/chat/api';
import { AppTypeEnum } from '@fastgpt/global/core/app/constants';
import { AppFolderTypeList, AppTypeEnum } from '@fastgpt/global/core/app/constants';
import { useSystem } from '@fastgpt/web/hooks/useSystem';
import LightRowTabs from '@fastgpt/web/components/common/Tabs/LightRowTabs';
import { useRouter } from 'next/router';
Expand Down Expand Up @@ -92,7 +92,7 @@ const MobileDrawer = ({
id: item._id,
name: item.name,
avatar: item.avatar,
isFolder: item.type === AppTypeEnum.folder
isFolder: AppFolderTypeList.includes(item.type)
}))
);
}, []);
Expand Down

0 comments on commit 856d7ce

Please sign in to comment.