Skip to content

Commit f5d238e

Browse files
committed
fix: fix job loader token initialization
1 parent a308782 commit f5d238e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/lib/components/JobLoader.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@
9696
let lastNoLogs = $state(noLogs)
9797
let lastCompletedJobId = $state<string | undefined>(undefined)
9898
99+
let token = getContext<{ token?: string }>('AuthToken')
100+
99101
$effect(() => {
100102
let newIsLoading = currentId !== undefined
101103
untrack(() => {
@@ -676,7 +678,6 @@
676678
)
677679
}
678680
679-
let token = getContext<{ token?: string }>('AuthToken')
680681
if (token?.token && token.token != '') {
681682
params.set('token', token.token)
682683
}

0 commit comments

Comments
 (0)