Merge pull request #975 from benalleng/option-key-prop

Add index to make unique key props on territory options
This commit is contained in:
Keyan 2024-03-26 14:31:43 -05:00 committed by GitHub
commit a93fea4a1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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