Merge pull request #975 from benalleng/option-key-prop
Add index to make unique key props on territory options
This commit is contained in:
commit
a93fea4a1f
|
@ -25,7 +25,7 @@ export function useSubs ({ prependSubs = [], sub, filterSubs = () => true, appen
|
|||
|
||||
const [subs, setSubs] = useState([
|
||||
...prependSubs.filter(s => s !== sub),
|
||||
sub,
|
||||
...(sub ? [sub] : []),
|
||||
...appendSubs.filter(s => s !== sub)])
|
||||
useEffect(() => {
|
||||
if (!data) return
|
||||
|
|
Loading…
Reference in New Issue