Skip to content

Commit

Permalink
Correct assignment of new state when toggling heading accordion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fitzgerald committed Dec 10, 2024
1 parent 9531c07 commit accfafb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class NumericInputEditor extends React.Component<Props, State> {
return () => {
const toggleName = `show${accordionName}`;
const newState = {...this.state};
newState[toggleName] === !newState[toggleName];
newState[toggleName] = !newState[toggleName];
this.setState(newState);
};
};
Expand Down

0 comments on commit accfafb

Please sign in to comment.