0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix(console): fix Golang guide crash

This commit is contained in:
Charles Zhao 2023-08-17 14:30:16 +08:00
parent 8b013ce979
commit 6da0e2ef46
No known key found for this signature in database
GPG key ID: 4858774754C92DF2

View file

@ -79,8 +79,9 @@ function UriInputField({ name, defaultValue }: Props) {
} }
}; };
const defaultValueArray = data?.oidcClientMetadata[name].length const clientMetadata = data?.oidcClientMetadata[name];
? data.oidcClientMetadata[name] const defaultValueArray = clientMetadata?.length
? clientMetadata
: conditional(defaultValue && [defaultValue]); : conditional(defaultValue && [defaultValue]);
return ( return (