Skip to content

Commit

Permalink
Remove duplicate "root" folder in dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
klein0r committed Dec 8, 2023
1 parent 5d9f58c commit d6b7104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/src/SideMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,7 @@ class SideDrawer extends React.Component {
getFolders() {
const folders = [{ id: ROOT_ID, name: I18n.t('Root folder') }];
this.state.listItems.forEach(item =>
item.type === 'folder' && folders.push({ id: item.id, name: item.title }));
item.type === 'folder' && item.id !== ROOT_ID && folders.push({ id: item.id, name: item.title }));
return folders;
}

Expand Down

0 comments on commit d6b7104

Please sign in to comment.