Fix unrelated automation log error message
This commit is contained in:
parent
70aae1ff21
commit
53b12075bb
|
@ -176,6 +176,8 @@
|
||||||
notifications.error("Error getting init info")
|
notifications.error("Error getting init info")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
$: console.log(automationErrors)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Page>
|
<Page>
|
||||||
|
@ -191,8 +193,14 @@
|
||||||
? "View errors"
|
? "View errors"
|
||||||
: "View error"}
|
: "View error"}
|
||||||
on:dismiss={async () => {
|
on:dismiss={async () => {
|
||||||
await automationStore.actions.clearLogErrors({ appId })
|
const automationId = Object.keys(automationErrors[appId] || {})[0]
|
||||||
await appsStore.load()
|
if (automationId) {
|
||||||
|
await automationStore.actions.clearLogErrors({
|
||||||
|
appId,
|
||||||
|
automationId,
|
||||||
|
})
|
||||||
|
await appsStore.load()
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
message={automationErrorMessage(appId)}
|
message={automationErrorMessage(appId)}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue