Use showAllRaidsOption to determine defaultValue

This commit is contained in:
Justin Edmund 2022-12-22 23:51:41 -08:00
parent 1bfd62627d
commit 455b31d1c2

View file

@ -127,7 +127,7 @@ const RaidDropdown = React.forwardRef<HTMLSelectElement, Props>(
return ( return (
<Select <Select
defaultValue={props.currentRaid} defaultValue={props.showAllRaidsOption ? props.currentRaid : undefined}
placeholder={'Select a raid...'} placeholder={'Select a raid...'}
open={open} open={open}
onClick={openRaidSelect} onClick={openRaidSelect}