Value in Select needs to be a string(boolean)

This commit is contained in:
Josh Perez 2021-06-03 20:42:46 -04:00 committed by GitHub
parent 9a63f0d2aa
commit d42a513619
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,11 +63,11 @@ export const GroupLinkManagement: React.ComponentType<PropsType> = ({
options={[
{
text: i18n('on'),
value: i18n('on'),
value: 'true',
},
{
text: i18n('off'),
value: i18n('off'),
value: 'false',
},
]}
value={String(Boolean(hasGroupLink))}
@ -121,11 +121,11 @@ export const GroupLinkManagement: React.ComponentType<PropsType> = ({
options={[
{
text: i18n('on'),
value: i18n('on'),
value: 'true',
},
{
text: i18n('off'),
value: i18n('off'),
value: 'false',
},
]}
value={String(membersNeedAdminApproval)}