Skip to content

Commit

Permalink
4.8.12 test (#3026)
Browse files Browse the repository at this point in the history
* perf: app list permission

* perf: create dataset tip

* fix: create dataset
  • Loading branch information
c121914yu authored Oct 30, 2024
1 parent 97216ee commit 946fda0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projects/app/src/pages/dataset/list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { CreateDatasetType } from './component/CreateModal';
import { DatasetTypeEnum } from '@fastgpt/global/core/dataset/constants';
import { useToast } from '@fastgpt/web/hooks/useToast';
import MyBox from '@fastgpt/web/components/common/MyBox';
import { useSystemStore } from '@/web/common/system/useSystemStore';

const EditFolderModal = dynamic(
() => import('@fastgpt/web/components/common/MyModal/EditFolderModal')
Expand Down Expand Up @@ -56,6 +57,7 @@ const Dataset = () => {
setSearchKey
} = useContextSelector(DatasetsContext, (v) => v);
const { userInfo } = useUserStore();
const { feConfigs } = useSystemStore();
const { toast } = useToast();
const [editFolderData, setEditFolderData] = useState<EditFolderFormType>();
const [createDatasetType, setCreateDatasetType] = useState<CreateDatasetType>();
Expand All @@ -73,7 +75,7 @@ const Dataset = () => {
}
setCreateDatasetType(e);
},
[t, toast]
[t, toast, feConfigs]
);

const RenderSearchInput = useMemo(
Expand Down

0 comments on commit 946fda0

Please sign in to comment.