Skip to content

Commit

Permalink
fix: FileDetail shows root and parent although they are the same
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed Oct 16, 2024
1 parent b03235e commit ab175cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/finder/FolderTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const FolderTabs = forwardRef((props: any, forwardedRef) => {
settings.parent_id && (<FolderTab key={'parent'} folder={{id: 'parent'}} settings={settings} />)
)}
{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 =>
<FolderTab
key={folder.id}
Expand Down

0 comments on commit ab175cf

Please sign in to comment.