Skip to content

Commit

Permalink
Prevent inactive agents from being selected
Browse files Browse the repository at this point in the history
  • Loading branch information
jen-huang committed Oct 23, 2019
1 parent 6df78e7 commit 1efdac8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export const AgentListPage: React.SFC<{}> = () => {
columns={columns}
isSelectable={true}
selection={{
selectable: () => true,
selectable: (agent: Agent) => agent.active,
onSelectionChange: (newSelectedAgents: Agent[]) => {
setSelectedAgents(newSelectedAgents);
setAreAllAgentsSelected(false);
Expand Down

0 comments on commit 1efdac8

Please sign in to comment.