Changing to pass a new Set to setState to fix potential no-op (#134936)

This commit is contained in:
Kurt 2022-06-22 16:20:24 -04:00 committed by GitHub
parent 60e7f1dcd1
commit 16c2c717f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -242,7 +242,7 @@ export class FeatureTable extends Component<Props, State> {
}
this.setState({
expandedPrivilegeControls: this.state.expandedPrivilegeControls,
expandedPrivilegeControls: new Set([...this.state.expandedPrivilegeControls]),
});
}}
>