Skip to content
This repository has been archived by the owner on Jun 11, 2023. It is now read-only.

Commit

Permalink
fix: delete is unavailable for folders
Browse files Browse the repository at this point in the history
  • Loading branch information
XZB-1248 committed Oct 23, 2022
1 parent bf66853 commit 451bff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function FileBrowser(props) {
{key: 'delete', name: i18n.t('EXPLORER.DELETE')},
];
if (file.type === 1) {
menus.pop();
menus.shift();
} else if (file.type === 2) {
return [];
}
Expand Down

0 comments on commit 451bff4

Please sign in to comment.