From 00332ed37fc4b19c8bf5795de2179582cc1b9743 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Sun, 19 Mar 2023 09:28:31 +0100 Subject: [PATCH] client: fix drive file selection closes https://akkoma.dev/FoundKeyGang/FoundKey/issues/358 --- packages/client/src/components/drive.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/drive.vue b/packages/client/src/components/drive.vue index 3b9ebd85c..d3d6a4527 100644 --- a/packages/client/src/components/drive.vue +++ b/packages/client/src/components/drive.vue @@ -364,7 +364,7 @@ function upload(file: File, folderToUpload?: foundkey.entities.DriveFolder | nul } 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 = (() => { if (props.select != null) {