mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-28 09:03:53 +00:00
fix: app type (#2185)
This commit is contained in:
@@ -11,7 +11,7 @@ import { useContextSelector } from 'use-context-selector';
|
|||||||
import { ChatContext } from '@/web/core/chat/context/chatContext';
|
import { ChatContext } from '@/web/core/chat/context/chatContext';
|
||||||
import MyTooltip from '@fastgpt/web/components/common/MyTooltip';
|
import MyTooltip from '@fastgpt/web/components/common/MyTooltip';
|
||||||
import { InitChatResponse } from '@/global/core/chat/api';
|
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 { useSystem } from '@fastgpt/web/hooks/useSystem';
|
||||||
import LightRowTabs from '@fastgpt/web/components/common/Tabs/LightRowTabs';
|
import LightRowTabs from '@fastgpt/web/components/common/Tabs/LightRowTabs';
|
||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
@@ -92,7 +92,7 @@ const MobileDrawer = ({
|
|||||||
id: item._id,
|
id: item._id,
|
||||||
name: item.name,
|
name: item.name,
|
||||||
avatar: item.avatar,
|
avatar: item.avatar,
|
||||||
isFolder: item.type === AppTypeEnum.folder
|
isFolder: AppFolderTypeList.includes(item.type)
|
||||||
}))
|
}))
|
||||||
);
|
);
|
||||||
}, []);
|
}, []);
|
||||||
|
Reference in New Issue
Block a user