We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76b70d8 commit 860dff1Copy full SHA for 860dff1
fission/src/ui/panels/configuring/assembly-config/interfaces/inputs/ConfigureSchemeInterface.tsx
@@ -102,11 +102,7 @@ const ConfigureSchemeInterface: React.FC<ConfigSchemeProps> = ({ selectedScheme
102
const existingJointIndexes = selectedScheme.inputs
103
.map(input => parseInt(input.inputName.replace("joint ", "")))
104
.filter(val => !isNaN(val))
105
- const newJointIndex =
106
- Math.max(
107
- 0,
108
- ...existingJointIndexes
109
- ) + 1
+ const newJointIndex = Math.max(0, ...existingJointIndexes) + 1
110
selectedScheme.inputs.push(AxisInput.unbound(`joint ${newJointIndex}`))
111
selectedScheme.customized = true
112
update()
0 commit comments