From 72e4b15e96bd2d99d046f200e28690f67c8bdd99 Mon Sep 17 00:00:00 2001 From: Chayan Das <01chayandas@gmail.com> Date: Thu, 23 Oct 2025 21:24:25 +0530 Subject: [PATCH 1/2] fix the file not found page --- src/files/FilesPage.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/files/FilesPage.js b/src/files/FilesPage.js index 64d70973c..b4d2ed175 100644 --- a/src/files/FilesPage.js +++ b/src/files/FilesPage.js @@ -197,12 +197,14 @@ const FilesPage = ({ , [files?.content, files?.pins, selected]) if (!files || files.type === 'file') return null - + // if file not found + if (files.type === 'not-found') { + return + } // Don't render stale content during navigation if (files.path && filesPathInfo.path && files.path !== filesPathInfo.path) { return null } - if (files.type === 'unknown') { const path = files.path @@ -214,10 +216,6 @@ const FilesPage = ({ ) } - if (files.type === 'not-found') { - return - } - const commonProps = { updateSorting: doFilesUpdateSorting, files: files.content || [], From a717c5a82d2154cbffa0ae29d4c5635506328619 Mon Sep 17 00:00:00 2001 From: Chayan Das <01chayandas@gmail.com> Date: Thu, 23 Oct 2025 21:39:52 +0530 Subject: [PATCH 2/2] fix the header for file not found Signed-off-by: Chayan Das <01chayandas@gmail.com> --- src/files/header/Header.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/files/header/Header.js b/src/files/header/Header.js index 53af1417c..70da40b65 100644 --- a/src/files/header/Header.js +++ b/src/files/header/Header.js @@ -57,12 +57,12 @@ class Header extends React.Component { } = this.props const pinsInQueue = pendingPins.length + failedPins.length + completedPins.length - + const filefound = files && files.type !== 'not-found' return (
- this.handleBreadCrumbsContextMenu(...args)} onAddFiles={this.props.onAddFiles} onMove={this.props.onMove}/>