small-fix: Update the typing of the context menu variable

Compliant with the Svelte linter rules
This commit is contained in:
estib 2024-10-07 09:49:21 +02:00
parent a7b2780a6a
commit 37f75061c8

View File

@ -51,7 +51,7 @@
const currentCommitMessage = persistedCommitMessage(project.id, branch?.id || '');
let draggableCommitElement: HTMLElement | null = null;
let contextMenu: CommitContextMenu;
let contextMenu: ReturnType<typeof CommitContextMenu> | undefined;
let files: RemoteFile[] = [];
let showDetails = false;
@ -228,7 +228,7 @@
role="button"
tabindex="0"
on:contextmenu={(e) => {
contextMenu.open(e);
contextMenu?.open(e);
}}
on:dragenter={() => {
isDragTargeted = true;