Re-add clone for App Action (#10052)

This commit is contained in:
melohagan 2023-03-16 11:36:47 +00:00 committed by GitHub
parent 3edb9a76d5
commit eeb8e49b54
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,7 @@
import { Utils } from "@budibase/frontend-core"
import { TriggerStepID, ActionStepID } from "constants/backend/automations"
import { onMount } from "svelte"
import { cloneDeep } from "lodash/fp"
export let block
export let testData
@ -62,6 +63,9 @@
const getInputData = (testData, blockInputs) => {
let newInputData = testData || blockInputs
if (block.event === "app:trigger" && !newInputData?.fields) {
newInputData = cloneDeep(blockInputs)
}
inputData = newInputData
}