From 37f75061c898715b7085f6c7c423fd62121a1478 Mon Sep 17 00:00:00 2001 From: estib Date: Mon, 7 Oct 2024 09:49:21 +0200 Subject: [PATCH] small-fix: Update the typing of the context menu variable Compliant with the Svelte linter rules --- apps/desktop/src/lib/commit/CommitCard.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/lib/commit/CommitCard.svelte b/apps/desktop/src/lib/commit/CommitCard.svelte index 87cb4e396..bb2d14e93 100644 --- a/apps/desktop/src/lib/commit/CommitCard.svelte +++ b/apps/desktop/src/lib/commit/CommitCard.svelte @@ -51,7 +51,7 @@ const currentCommitMessage = persistedCommitMessage(project.id, branch?.id || ''); let draggableCommitElement: HTMLElement | null = null; - let contextMenu: CommitContextMenu; + let contextMenu: ReturnType | 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;