diff --git a/src/pages/workspace/WorkspaceMembersPage.js b/src/pages/workspace/WorkspaceMembersPage.js index 2d439efc9ef4..1ba01ddeae34 100644 --- a/src/pages/workspace/WorkspaceMembersPage.js +++ b/src/pages/workspace/WorkspaceMembersPage.js @@ -96,6 +96,12 @@ class WorkspaceMembersPage extends React.Component { this.validate(); } + if (prevProps.policyMemberList !== this.props.policyMemberList) { + this.setState((prevState) => ({ + selectedEmployees: _.intersection(prevState.selectedEmployees, _.keys(this.props.policyMemberList)), + })); + } + const isReconnecting = prevProps.network.isOffline && !this.props.network.isOffline; if (!isReconnecting) { return;