diff --git a/packages/console/src/mdx-components-v2/UriInputField/index.tsx b/packages/console/src/mdx-components-v2/UriInputField/index.tsx index 0978fd3d7..abd01a26e 100644 --- a/packages/console/src/mdx-components-v2/UriInputField/index.tsx +++ b/packages/console/src/mdx-components-v2/UriInputField/index.tsx @@ -79,8 +79,9 @@ function UriInputField({ name, defaultValue }: Props) { } }; - const defaultValueArray = data?.oidcClientMetadata[name].length - ? data.oidcClientMetadata[name] + const clientMetadata = data?.oidcClientMetadata[name]; + const defaultValueArray = clientMetadata?.length + ? clientMetadata : conditional(defaultValue && [defaultValue]); return (