Skip to content

Commit

Permalink
Changing to pass a new Set to setState to fix potential no-op (#134936)…
Browse files Browse the repository at this point in the history
… (#134946)

(cherry picked from commit 16c2c71)

Co-authored-by: Kurt <[email protected]>
  • Loading branch information
kibanamachine and kc13greiner authored Jun 22, 2022
1 parent 5aa7fce commit a6a2a6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export class FeatureTable extends Component<Props, State> {
}

this.setState({
expandedPrivilegeControls: this.state.expandedPrivilegeControls,
expandedPrivilegeControls: new Set([...this.state.expandedPrivilegeControls]),
});
}}
>
Expand Down

0 comments on commit a6a2a6e

Please sign in to comment.