diff --git a/interface/app/$libraryId/Explorer/View/GridList.tsx b/interface/app/$libraryId/Explorer/View/GridList.tsx index cac2a748e..a3648fa19 100644 --- a/interface/app/$libraryId/Explorer/View/GridList.tsx +++ b/interface/app/$libraryId/Explorer/View/GridList.tsx @@ -20,6 +20,7 @@ import { getQuickPreviewStore } from '../QuickPreview/store'; import { getExplorerStore, isCut, useExplorerStore } from '../store'; import { uniqueId } from '../util'; import { useExplorerViewContext } from '../ViewContext'; +import clsx from 'clsx'; const SelectoContext = createContext<{ selecto: React.RefObject; @@ -625,7 +626,6 @@ export default ({ children }: { children: RenderItem }) => { {(index) => { const item = explorer.items?.[index]; - if (!item) return null; return ( diff --git a/interface/app/$libraryId/Explorer/View/GridView.tsx b/interface/app/$libraryId/Explorer/View/GridView.tsx index 9d8fb604d..323e86cf4 100644 --- a/interface/app/$libraryId/Explorer/View/GridView.tsx +++ b/interface/app/$libraryId/Explorer/View/GridView.tsx @@ -25,6 +25,7 @@ const GridViewItem = memo(({ data, selected, cut, isRenaming }: GridViewItemProp const location = getItemLocation(data); const isEphemeralLocation = useMatch('/:libraryId/ephemeral/:ephemeralId'); const isFolder = 'is_dir' in data.item ? data.item.is_dir || data.type === 'Location' : false; + const hidden = filePathData?.hidden ?? false; const showSize = showBytesInGridView && @@ -34,7 +35,7 @@ const GridViewItem = memo(({ data, selected, cut, isRenaming }: GridViewItemProp (!isRenaming || (isRenaming && !selected)); return ( - +