fix: improve behavior for already completed jobs when doing immediate cancels

This commit is contained in:
Ruben Fiszel
2025-09-26 17:19:37 +00:00
parent f990107c45
commit 341cdcf66e
2 changed files with 37 additions and 10 deletions

View File

@@ -4,7 +4,7 @@
import Popover from '../Popover.svelte'
import { onDestroy, untrack } from 'svelte'
interface Props {
tag: string
tag: string | undefined
tagLabel?: string
}
@@ -17,9 +17,9 @@
let visible = true
let customTag = $derived.by(() => {
if (tag.includes('$workspace') || tag.includes('$args')) return
if (tag?.includes('$workspace') || tag?.includes('$args')) return
if (tag.includes('(')) {
if (tag?.includes('(')) {
return tag.split('(')[0]
}
return tag
@@ -44,7 +44,7 @@
$effect(() => {
customTag
untrack(() => lookForTag())
untrack(() => timeout && setTimeout(() => lookForTag(), 2500))
})
onDestroy(() => {