Fix unrelated automation log error message

This commit is contained in:
Andrew Kingston 2025-01-13 10:57:10 +00:00
parent 70aae1ff21
commit 53b12075bb
No known key found for this signature in database
1 changed files with 10 additions and 2 deletions

View File

@ -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]
if (automationId) {
await automationStore.actions.clearLogErrors({
appId,
automationId,
})
await appsStore.load() await appsStore.load()
}
}} }}
message={automationErrorMessage(appId)} message={automationErrorMessage(appId)}
/> />