Skip to content

Commit

Permalink
fix file right click
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniket-Engg committed Nov 26, 2024
1 parent 1ae3d87 commit c149686
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const FileExplorerContextMenu = (props: FileExplorerContextMenuProps) =>
return !(el.key === '' && el.type === 'folder')
})

if (focus[0].key === 'contextMenu') {
if (focus?.length && focus[0].key === 'contextMenu') {
return true
}

Expand Down

0 comments on commit c149686

Please sign in to comment.