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:
@@ -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));
|
||||
};
|
||||
|
Reference in New Issue
Block a user