Skip to content

Commit

Permalink
fix currentMode state modified by accident
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouwenxuan authored and zhouwenxuan committed Feb 17, 2025
1 parent 06410d2 commit 127b405
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/pages/lib-content-view/lib-content-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 127b405

Please sign in to comment.