### What problem does this PR solve? fix: fetch the file list after uploading the file by @tanstack/react-query #1306 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -26,7 +26,7 @@ import {
|
||||
|
||||
import {
|
||||
IListResult,
|
||||
useSelectParentFolderList,
|
||||
useFetchParentFolderList,
|
||||
} from '@/hooks/file-manager-hooks';
|
||||
import styles from './index.less';
|
||||
|
||||
@@ -49,7 +49,7 @@ const FileToolbar = ({
|
||||
const { t } = useTranslate('knowledgeDetails');
|
||||
const breadcrumbItems = useSelectBreadcrumbItems();
|
||||
const { handleBreadcrumbClick } = useHandleBreadcrumbClick();
|
||||
const parentFolderList = useSelectParentFolderList();
|
||||
const parentFolderList = useFetchParentFolderList();
|
||||
const isKnowledgeBase =
|
||||
parentFolderList.at(-1)?.source_type === 'knowledgebase';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user