0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-10 22:22:45 -05:00

Merge pull request #4360 from logto-io/charles-log-6973-fix-golang-guide-crashed

fix(console): fix Golang guide crash
This commit is contained in:
Gao Sun 2023-08-17 15:54:22 +09:00 committed by GitHub
commit 669d7537fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 (