Fix bug preventing file context menu to open

- was happening for selected items
This commit is contained in:
Mattias Granlund 2024-11-04 23:24:28 +01:00
parent 72fe2556a7
commit 252ac974be

View File

@ -175,7 +175,7 @@
ondragstart={handleDragStart}
oncontextmenu={(e) => {
if (fileIdSelection.has(file.id, $commit?.id)) {
contextMenu?.open(e, { files: selectedFiles });
contextMenu?.open(e, { files: $selectedFiles });
} else {
contextMenu?.open(e, { files: [file] });
}