|
|
|
@ -5,9 +5,8 @@ |
|
|
|
import { ActionStepID } from "constants/backend/automations" |
|
|
|
|
|
|
|
export let automation |
|
|
|
export let testResults |
|
|
|
|
|
|
|
let blocks |
|
|
|
let blocks, testResults |
|
|
|
|
|
|
|
$: { |
|
|
|
blocks = [] |
|
|
|
@ -18,15 +17,11 @@ |
|
|
|
blocks = blocks |
|
|
|
.concat(automation.definition.steps || []) |
|
|
|
.filter(x => x.stepId !== ActionStepID.LOOP) |
|
|
|
} else if (testResults) { |
|
|
|
blocks = testResults.steps || [] |
|
|
|
} |
|
|
|
} |
|
|
|
$: { |
|
|
|
if (!testResults) { |
|
|
|
testResults = $automationStore.selectedAutomation?.testResults |
|
|
|
} else if ($automationStore.selectedAutomation) { |
|
|
|
automation = $automationStore.selectedAutomation |
|
|
|
} |
|
|
|
} |
|
|
|
$: testResults = $automationStore.selectedAutomation?.testResults |
|
|
|
</script> |
|
|
|
|
|
|
|
<div class="title"> |
|
|
|
|