mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-27 09:47:34 +03:00
Fix bug preventing file context menu to open
- was happening for selected items
This commit is contained in:
parent
72fe2556a7
commit
252ac974be
@ -175,7 +175,7 @@
|
|||||||
ondragstart={handleDragStart}
|
ondragstart={handleDragStart}
|
||||||
oncontextmenu={(e) => {
|
oncontextmenu={(e) => {
|
||||||
if (fileIdSelection.has(file.id, $commit?.id)) {
|
if (fileIdSelection.has(file.id, $commit?.id)) {
|
||||||
contextMenu?.open(e, { files: selectedFiles });
|
contextMenu?.open(e, { files: $selectedFiles });
|
||||||
} else {
|
} else {
|
||||||
contextMenu?.open(e, { files: [file] });
|
contextMenu?.open(e, { files: [file] });
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user