diff --git a/src/files/FilesPage.js b/src/files/FilesPage.js index bd8b547ee..0f7f32976 100644 --- a/src/files/FilesPage.js +++ b/src/files/FilesPage.js @@ -116,7 +116,7 @@ const FilesPage = ({ } const MainView = ({ t, files, remotePins, pendingPins, failedPins, doExploreUserProvidedPath }) => { - if (!files) return (
) + if (!files || files.type === 'file') return () if (files.type === 'unknown') { const path = files.path @@ -130,12 +130,6 @@ const FilesPage = ({ ) } - if (files.type === 'file') { - return ( -