fix: fetch the file list after uploading the file by @tanstack/react-query #1306 (#1654)

### 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:
balibabu
2024-07-23 17:53:15 +08:00
committed by GitHub
parent 022afbb39d
commit 80d703f9c2
7 changed files with 136 additions and 405 deletions

View File

@@ -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';