Skip to content

Commit 451bff4

Browse files
author
XZB-1248
committed
fix: delete is unavailable for folders
1 parent bf66853 commit 451bff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/components/explorer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function FileBrowser(props) {
128128
{key: 'delete', name: i18n.t('EXPLORER.DELETE')},
129129
];
130130
if (file.type === 1) {
131-
menus.pop();
131+
menus.shift();
132132
} else if (file.type === 2) {
133133
return [];
134134
}

0 commit comments

Comments
 (0)