Merge pull request #949 from DoubleCookies/i-946

Other default value + empty onChange
This commit is contained in:
Kalle
2022-09-18 20:53:28 +03:00
committed by GitHub

View File

@@ -379,8 +379,11 @@ function Abilities() {
value={
abilities.flat().every((a) => a !== "UNKNOWN")
? JSON.stringify(abilities)
: undefined
: []
}
// empty onChange is because otherwise it will give a React error in console
// readOnly can't be set as then validation is not active
onChange={() => null}
required
/>
<AbilitiesSelector