Update file-explorer-context-menu.tsx

pull/1184/head
bunsenstraat 3 years ago committed by GitHub
parent 943890a248
commit 66ee2f986e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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