Skip to content

Commit e7582fd

Browse files
committed
fix: reset loading only on error
1 parent efb76a6 commit e7582fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/stores/kernelApi.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,9 @@ export const useKernelApiStore = defineStore('kernelApi', () => {
261261
stopOutputKeyword: CoreStopOutputKeyword,
262262
},
263263
)
264-
} finally {
264+
} catch (error) {
265265
loading.value = false
266+
throw error
266267
}
267268
}
268269

0 commit comments

Comments
 (0)