Update file-explorer-context-menu.tsx

pull/5370/head
bunsenstraat 4 years ago committed by GitHub
parent d88b848b04
commit 8986656002
  1. 2
      libs/remix-ui/file-explorer/src/lib/file-explorer-context-menu.tsx

@ -24,7 +24,7 @@ export const FileExplorerContextMenu = (props: FileExplorerContextMenuProps) =>
const filterItem = (item: action) => {
/**
* if there are multiple elements focused we need to take this and all conditions must be met
* for example : 'downloadAsZip' with type ['file','folder','multi'] will work on files and folders when multiple are selected
* for example : 'downloadAsZip' with type ['file','folder'] will work on files and folders when multiple are selected
**/
const nonRootFocus = focus.filter((el) => { return !(el.key === '' && el.type === 'folder') })
if (nonRootFocus.length > 1) {

Loading…
Cancel
Save