Merge pull request #723 from edewit/warning

fixed default value warning
This commit is contained in:
mfrances17 2021-06-23 10:16:08 -04:00 committed by GitHub
commit 328f508237
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -99,7 +99,7 @@ export const LocalizationTab = ({
<Controller <Controller
name="internationalizationEnabled" name="internationalizationEnabled"
control={control} control={control}
defaultValue={realm?.internationalizationEnabled} defaultValue={false}
render={({ onChange, value }) => ( render={({ onChange, value }) => (
<Switch <Switch
id="kc-l-internationalization" id="kc-l-internationalization"

View file

@ -244,7 +244,7 @@ export const RealmSettingsThemesTab = ({
<Controller <Controller
name="internationalizationEnabled" name="internationalizationEnabled"
control={control} control={control}
defaultValue={internationalizationEnabled} defaultValue={false}
render={({ onChange, value }) => ( render={({ onChange, value }) => (
<Switch <Switch
id="kc-t-internationalization" id="kc-t-internationalization"