client: fix drive file selection

closes FoundKeyGang/FoundKey#358
This commit is contained in:
Johann150 2023-03-19 09:28:31 +01:00
parent ae0a7b668f
commit 00332ed37f
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -364,7 +364,7 @@ function upload(file: File, folderToUpload?: foundkey.entities.DriveFolder | nul
} }
function choose(choice: foundkey.entities.DriveFile | foundkey.entities.DriveFolder, extendSelection: boolean) { function choose(choice: foundkey.entities.DriveFile | foundkey.entities.DriveFolder, extendSelection: boolean) {
const alreadySelected = selectedFiles.some(f => f.id === file.id); const alreadySelected = selected.some(f => f.id === file.id);
const action = (() => { const action = (() => {
if (props.select != null) { if (props.select != null) {