chore: fix error when multiple files are moved into another vault

This commit is contained in:
Aman Harwara
2023-09-10 20:56:09 +05:30
parent 725a40b833
commit 95c0352464

View File

@@ -69,6 +69,10 @@ const FileMenuOptions: FunctionComponent<Props> = ({
closeMenu()
}, [closeMenu, toggleAppPane])
if (selectedFiles.length === 0) {
return <div className="text-center">No files selected</div>
}
return (
<>
{selectedFiles.length === 1 && (