fix search for all files
This commit is contained in:
@@ -68,10 +68,12 @@ export function FileSearchPanel(
|
||||
try {
|
||||
let result = await searchUserFiles(fileId);
|
||||
|
||||
if (result.content.length && fileType === 'image') {
|
||||
if (result.content.length) {
|
||||
setSearchedUserFiles(result.content);
|
||||
if (fileType === 'image') {
|
||||
setShowGlobalSearch(true);
|
||||
handlerSearchGlobalFile(fileId, page);
|
||||
}
|
||||
} else {
|
||||
setSearchedUserFilesShowNull(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user