mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-24 18:12:48 +03:00
small-fix: Update the typing of the context menu variable
Compliant with the Svelte linter rules
This commit is contained in:
parent
a7b2780a6a
commit
37f75061c8
@ -51,7 +51,7 @@
|
|||||||
const currentCommitMessage = persistedCommitMessage(project.id, branch?.id || '');
|
const currentCommitMessage = persistedCommitMessage(project.id, branch?.id || '');
|
||||||
|
|
||||||
let draggableCommitElement: HTMLElement | null = null;
|
let draggableCommitElement: HTMLElement | null = null;
|
||||||
let contextMenu: CommitContextMenu;
|
let contextMenu: ReturnType<typeof CommitContextMenu> | undefined;
|
||||||
let files: RemoteFile[] = [];
|
let files: RemoteFile[] = [];
|
||||||
let showDetails = false;
|
let showDetails = false;
|
||||||
|
|
||||||
@ -228,7 +228,7 @@
|
|||||||
role="button"
|
role="button"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
on:contextmenu={(e) => {
|
on:contextmenu={(e) => {
|
||||||
contextMenu.open(e);
|
contextMenu?.open(e);
|
||||||
}}
|
}}
|
||||||
on:dragenter={() => {
|
on:dragenter={() => {
|
||||||
isDragTargeted = true;
|
isDragTargeted = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user