1
0
Fork 0
mirror of synced 2024-10-05 20:44:47 +13:00

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

View file

@ -108,7 +108,13 @@
/****************************************************/
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