Fix for app action fields and don't clone testData (#11441)

This commit is contained in:
melohagan 2023-08-04 16:25:14 +01:00 committed by GitHub
parent c29b482913
commit 3097c9162f
1 changed files with 7 additions and 1 deletions

View File

@ -108,7 +108,13 @@
/****************************************************/ /****************************************************/
const getInputData = (testData, blockInputs) => { const getInputData = (testData, blockInputs) => {
let newInputData = cloneDeep(testData || blockInputs) // Test data is not cloned for reactivity
let newInputData = testData || cloneDeep(blockInputs)
// Ensures the app action fields are populated
if (block.event === "app:trigger" && !newInputData?.fields) {
newInputData = cloneDeep(blockInputs)
}
/** /**
* TODO - Remove after November 2023 * TODO - Remove after November 2023