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")
|
||||
}
|
||||
})
|
||||
|
||||
$: console.log(automationErrors)
|
||||
</script>
|
||||
|
||||
<Page>
|
||||
|
@ -191,8 +193,14 @@
|
|||
? "View errors"
|
||||
: "View error"}
|
||||
on:dismiss={async () => {
|
||||
await automationStore.actions.clearLogErrors({ appId })
|
||||
await appsStore.load()
|
||||
const automationId = Object.keys(automationErrors[appId] || {})[0]
|
||||
if (automationId) {
|
||||
await automationStore.actions.clearLogErrors({
|
||||
appId,
|
||||
automationId,
|
||||
})
|
||||
await appsStore.load()
|
||||
}
|
||||
}}
|
||||
message={automationErrorMessage(appId)}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue