fix: handle better non object result for app result loader

This commit is contained in:
Ruben Fiszel
2024-01-08 10:02:24 +01:00
parent 7155c5369b
commit b192bbb0a1
@@ -177,7 +177,7 @@
if (currentId === id || allowConcurentRequests) {
job = { ...maybe_job, id }
await tick()
if ('error' in (job?.result ?? {})) {
if (typeof job?.result == 'object' && 'error' in (job?.result ?? {})) {
callbacks?.error()
dispatch('doneError', {
id,