Skip to content

Commit

Permalink
Changed Autocomplete loading prop value to be same as loading variabl…
Browse files Browse the repository at this point in the history
…e value; Changed noOptions text to be more specific
  • Loading branch information
wrigh393 committed Jun 29, 2021
1 parent 219f072 commit 9d7131f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/QueueSelector/QueueSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ export default function QueueSelector({ open, setOpen, value, setValue }) {

const theme = useTheme();
const useStyles = makeStyles({
Paper_root: {
Paper_root: {
margin: theme.spacing(1)
}
});
const classes = useStyles();
});
const classes = useStyles();

// Prepopulate Active Queues from Cookies
useEffect( _ => {
Expand Down Expand Up @@ -155,11 +155,12 @@ export default function QueueSelector({ open, setOpen, value, setValue }) {
getOptionLabel={(option) => `${option.name} (${option.number_of_items})`}
renderOption={optionRenderer}
getOptionSelected={ (option, value) => option.name === value.name }
noOptionsText={"Queue does not exist"}
size="small"
open={open}
onOpen={_ => setOpen(true)}
onClose={_ => setOpen(false)}
loading={true}
loading={loading}
disableCloseOnSelect
disableListWrap
fullWidth
Expand Down

0 comments on commit 9d7131f

Please sign in to comment.