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;