From 44b05317e683f40db096430604b6182178b9c8b7 Mon Sep 17 00:00:00 2001 From: romanetar Date: Wed, 26 Feb 2025 11:53:37 +0100 Subject: [PATCH] fix: make optional fields nullable Signed-off-by: romanetar --- .../js/oauth2/profile/edit_client/components/oauth_panel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/js/oauth2/profile/edit_client/components/oauth_panel.js b/resources/js/oauth2/profile/edit_client/components/oauth_panel.js index 0b87df90..24d35131 100644 --- a/resources/js/oauth2/profile/edit_client/components/oauth_panel.js +++ b/resources/js/oauth2/profile/edit_client/components/oauth_panel.js @@ -88,9 +88,9 @@ const OauthPanel = ({ "The app description field is required." ), website: string().max(SIMPLE_INPUT_MAX_LENGTH, ''), - logo_uri: string().max(SIMPLE_INPUT_MAX_LENGTH, ''), - tos_uri: string().max(SIMPLE_INPUT_MAX_LENGTH, ''), - policy_uri: string().max(SIMPLE_INPUT_MAX_LENGTH, ''), + logo_uri: string().max(SIMPLE_INPUT_MAX_LENGTH, '').nullable(), + tos_uri: string().max(SIMPLE_INPUT_MAX_LENGTH, '').nullable(), + policy_uri: string().max(SIMPLE_INPUT_MAX_LENGTH, '').nullable(), }); }