fix: incorrect display of source key (#5771)

This commit is contained in:
Katherine 2024-12-02 22:47:55 +08:00 committed by GitHub
parent f2b3571845
commit 6c3eb4a40e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,7 +41,7 @@ export const SourceKey = observer(
<Select <Select
disabled={sourceKey} disabled={sourceKey}
options={options} options={options}
defaultValue={options?.[0]?.value || sourceKey} defaultValue={sourceKey || options?.[0]?.value}
onChange={props?.onChange} onChange={props?.onChange}
showSearch showSearch
/> />