1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 22:54:11 +00:00

fix create new folder (#7016)

* optimize code

* optimize code

---------

Co-authored-by: zhouwenxuan <aries@Mac.local>
This commit is contained in:
Aries
2024-11-11 15:26:56 +08:00
committed by GitHub
parent 15857ac567
commit 20d6828d00
8 changed files with 179 additions and 164 deletions

View File

@@ -956,7 +956,7 @@ class LibContentView extends React.Component {
removeFromRecentlyUsed = (repoID, path) => {
const recentlyUsed = JSON.parse(localStorage.getItem('recently-used-list')) || [];
const updatedRecentlyUsed = recentlyUsed.filter(item =>
!(item.repo.repo_id === repoID && item.path === path)
!(item.repo_id === repoID && item.path === path)
);
localStorage.setItem('recently-used-list', JSON.stringify(updatedRecentlyUsed));
};