diff --git a/client/finder/FolderTabs.tsx b/client/finder/FolderTabs.tsx index 651feb7bb..565b663d9 100644 --- a/client/finder/FolderTabs.tsx +++ b/client/finder/FolderTabs.tsx @@ -110,7 +110,7 @@ const FolderTabs = forwardRef((props: any, forwardedRef) => { settings.parent_id && () )} {favoriteFolders.filter( - folder => !isSearchResult || folder.is_pinned || folder.id !== settings.folder_id + folder => !isSearchResult && !settings.file_id || folder.is_pinned || folder.id !== settings.folder_id ).map(folder =>