Skip to content

Commit

Permalink
Add controlled values
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Nov 20, 2020
1 parent 2de2d34 commit e7bc281
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/QueueSelector/QueueSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export default function QueueSelector({ selectedQueues, setSelectedQueues }) {
)}

options={queueCounts}
value={selectedQueues}
onChange={handleChange}
getOptionLabel={(option) => `${option.name} (${option.number_of_items})`}
renderOption={optionRenderer}
Expand Down

0 comments on commit e7bc281

Please sign in to comment.