Fixing an issue with test panel not updating when new test data comes in.
This commit is contained in:
parent
41627d14a8
commit
5945a432e7
|
@ -5,9 +5,8 @@
|
||||||
import { ActionStepID } from "constants/backend/automations"
|
import { ActionStepID } from "constants/backend/automations"
|
||||||
|
|
||||||
export let automation
|
export let automation
|
||||||
export let testResults
|
|
||||||
|
|
||||||
let blocks
|
let blocks, testResults
|
||||||
|
|
||||||
$: {
|
$: {
|
||||||
blocks = []
|
blocks = []
|
||||||
|
@ -18,15 +17,11 @@
|
||||||
blocks = blocks
|
blocks = blocks
|
||||||
.concat(automation.definition.steps || [])
|
.concat(automation.definition.steps || [])
|
||||||
.filter(x => x.stepId !== ActionStepID.LOOP)
|
.filter(x => x.stepId !== ActionStepID.LOOP)
|
||||||
} else if (testResults) {
|
} else if ($automationStore.selectedAutomation) {
|
||||||
blocks = testResults.steps || []
|
automation = $automationStore.selectedAutomation
|
||||||
}
|
|
||||||
}
|
|
||||||
$: {
|
|
||||||
if (!testResults) {
|
|
||||||
testResults = $automationStore.selectedAutomation?.testResults
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$: testResults = $automationStore.selectedAutomation?.testResults
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="title">
|
<div class="title">
|
||||||
|
|
Loading…
Reference in New Issue