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