From a6a2a6e96cd74f44d2d3a85bd06276952d4fffd5 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Wed, 22 Jun 2022 18:09:48 -0400 Subject: [PATCH] Changing to pass a new Set to setState to fix potential no-op (#134936) (#134946) (cherry picked from commit 16c2c717f121c6933b02daf9bce13a1fecd97c36) Co-authored-by: Kurt --- .../edit_role/privileges/kibana/feature_table/feature_table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/feature_table/feature_table.tsx b/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/feature_table/feature_table.tsx index e30066ad0061c..17138a5c7e5c9 100644 --- a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/feature_table/feature_table.tsx +++ b/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/feature_table/feature_table.tsx @@ -240,7 +240,7 @@ export class FeatureTable extends Component { } this.setState({ - expandedPrivilegeControls: this.state.expandedPrivilegeControls, + expandedPrivilegeControls: new Set([...this.state.expandedPrivilegeControls]), }); }} >