Added fix for Update step table select. The fix for the oldRow behaviour broke the picker

This commit is contained in:
Dean 2024-07-03 10:25:46 +01:00
parent f44aba763e
commit b36311fc2c
1 changed files with 7 additions and 4 deletions

View File

@ -272,7 +272,7 @@
isUpdateRow: block.stepId === ActionStepID.UPDATE_ROW,
}
if (currentStep?.rowType === "oldRow") {
if (isTestModal && currentStep?.rowType === "oldRow") {
return [
{
type: RowSelector,
@ -325,12 +325,15 @@
isTrigger,
value: inputData["row"]?.tableId ?? "",
onChange: e => {
const rowKey = $stepStore?.[block.id]?.rowType || "row"
onChange({
_tableId: e.detail,
meta: {},
[$stepStore?.[block.id]?.rowType]: {
tableId: e.detail,
},
[rowKey]: e.detail
? {
tableId: e.detail,
}
: {},
})
},
disabled: isTestModal,