fix no merge

This commit is contained in:
cha0s 2020-06-22 19:01:45 -05:00
parent 43dda946fe
commit 9399de19db

View File

@ -78,17 +78,14 @@ const Traversal = (props) => {
context={context} context={context}
onChange={(argValue, event) => ( onChange={(argValue, event) => (
onChange({ onChange({
...value, type: 'traversal',
steps: [ steps: [
...steps.slice(0, i), ...steps.slice(0, i),
{ {
...steps[i], ...steps[i],
args: [ args: [
...steps[i].args.slice(0, j), ...steps[i].args.slice(0, j),
{ toBehaviorItem(argValue),
...steps[i].args[j],
...toBehaviorItem(argValue),
},
...steps[i].args.slice(j + 1), ...steps[i].args.slice(j + 1),
], ],
}, },
@ -122,12 +119,12 @@ const Traversal = (props) => {
context={context} context={context}
onChange={(valueValue, event) => ( onChange={(valueValue, event) => (
onChange({ onChange({
...value, type: 'traversal',
steps, steps,
value: toBehaviorItem(valueValue), value: toBehaviorItem(valueValue),
}, event) }, event)
)} )}
type={stepsType} type={typeFromSteps(context, steps)}
value={assignValue} value={assignValue}
/> />
</span> </span>