1
0
Fork 0
mirror of synced 2024-10-06 13:04:36 +13:00

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

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
}