Skip to content

Commit d07fbb4

Browse files
authored
fix: make optional fields nullable (#69)
Signed-off-by: romanetar <roman_ag@hotmail.com>
1 parent b697e26 commit d07fbb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/js/oauth2/profile/edit_client/components/oauth_panel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ const OauthPanel = ({
8888
"The app description field is required."
8989
),
9090
website: string().max(SIMPLE_INPUT_MAX_LENGTH, ''),
91-
logo_uri: string().max(SIMPLE_INPUT_MAX_LENGTH, ''),
92-
tos_uri: string().max(SIMPLE_INPUT_MAX_LENGTH, ''),
93-
policy_uri: string().max(SIMPLE_INPUT_MAX_LENGTH, ''),
91+
logo_uri: string().max(SIMPLE_INPUT_MAX_LENGTH, '').nullable(),
92+
tos_uri: string().max(SIMPLE_INPUT_MAX_LENGTH, '').nullable(),
93+
policy_uri: string().max(SIMPLE_INPUT_MAX_LENGTH, '').nullable(),
9494
});
9595
}
9696

0 commit comments

Comments
 (0)