Added fix for Update step table select. The fix for the oldRow behaviour broke the picker
This commit is contained in:
parent
f44aba763e
commit
b36311fc2c
|
@ -272,7 +272,7 @@
|
||||||
isUpdateRow: block.stepId === ActionStepID.UPDATE_ROW,
|
isUpdateRow: block.stepId === ActionStepID.UPDATE_ROW,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentStep?.rowType === "oldRow") {
|
if (isTestModal && currentStep?.rowType === "oldRow") {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
type: RowSelector,
|
type: RowSelector,
|
||||||
|
@ -325,12 +325,15 @@
|
||||||
isTrigger,
|
isTrigger,
|
||||||
value: inputData["row"]?.tableId ?? "",
|
value: inputData["row"]?.tableId ?? "",
|
||||||
onChange: e => {
|
onChange: e => {
|
||||||
|
const rowKey = $stepStore?.[block.id]?.rowType || "row"
|
||||||
onChange({
|
onChange({
|
||||||
_tableId: e.detail,
|
_tableId: e.detail,
|
||||||
meta: {},
|
meta: {},
|
||||||
[$stepStore?.[block.id]?.rowType]: {
|
[rowKey]: e.detail
|
||||||
tableId: e.detail,
|
? {
|
||||||
},
|
tableId: e.detail,
|
||||||
|
}
|
||||||
|
: {},
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
disabled: isTestModal,
|
disabled: isTestModal,
|
||||||
|
|
Loading…
Reference in New Issue