From 127b405385f4e83b3d8d386bff462b4a1a4dbb31 Mon Sep 17 00:00:00 2001 From: zhouwenxuan Date: Mon, 17 Feb 2025 15:44:17 +0800 Subject: [PATCH] fix currentMode state modified by accident --- frontend/src/pages/lib-content-view/lib-content-view.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/pages/lib-content-view/lib-content-view.js b/frontend/src/pages/lib-content-view/lib-content-view.js index 3a2b7dddc44..54bd7be71b3 100644 --- a/frontend/src/pages/lib-content-view/lib-content-view.js +++ b/frontend/src/pages/lib-content-view/lib-content-view.js @@ -1996,6 +1996,7 @@ class LibContentView extends React.Component { }; resetSelected = (node) => { + if (node.object?.type === 'file') return; const currentModel = this.state.currentMode; const path = node.path || ''; let nextModel = cookie.load('seafile_view_mode') || LIST_MODE;