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:
parent
8b013ce979
commit
6da0e2ef46
1 changed files with 3 additions and 2 deletions
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue