From 080694a08a02cddcae232d0070f8e4e44122d45c Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Thu, 13 Oct 2022 13:07:53 +0100 Subject: [PATCH] Rename flowEditors to stepEditors --- .../builder/src/components/integration/index.svelte | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/builder/src/components/integration/index.svelte b/packages/builder/src/components/integration/index.svelte index 2faa3c0ce5..57050a27db 100644 --- a/packages/builder/src/components/integration/index.svelte +++ b/packages/builder/src/components/integration/index.svelte @@ -24,7 +24,7 @@ export let editable = true export let height = 500 - let flowEditors = [] + let stepEditors = [] $: urlDisplay = schema.urlDisplay && @@ -38,13 +38,13 @@ function updateEditorsOnDelete(deleteIndex) { for (let i = deleteIndex; i < query.fields.steps?.length - 1; i++) { - flowEditors[i].update(query.fields.steps[i + 1].value.value) + stepEditors[i].update(query.fields.steps[i + 1].value.value) } } function updateEditorsOnSwap(actionIndex, targetIndex) { const target = query.fields.steps[targetIndex].value.value - flowEditors[targetIndex].update(query.fields.steps[actionIndex].value.value) - flowEditors[actionIndex].update(target) + stepEditors[targetIndex].update(query.fields.steps[actionIndex].value.value) + stepEditors[actionIndex].update(target) } function setEditorTemplate(fromKey, toKey, index) { @@ -58,7 +58,7 @@ query.fields.steps[index].value.value = schema.steps.filter( step => step.key === toKey )[0]?.template - flowEditors[index].update(query.fields.steps[index].value.value) + stepEditors[index].update(query.fields.steps[index].value.value) } query.fields.steps[index].key = toKey } @@ -174,7 +174,7 @@ }} />