mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 00:53:14 +00:00
frontend: adapting to migration
This commit is contained in:
@@ -26,6 +26,7 @@ function Dropdown({
|
||||
| string
|
||||
| { label: string; value: string }
|
||||
| { value: number; description: string }
|
||||
| { name: string; id: string; type: string }
|
||||
| null;
|
||||
onSelect:
|
||||
| ((value: string) => void)
|
||||
@@ -96,6 +97,10 @@ function Dropdown({
|
||||
? selectedValue.value + ` (${selectedValue.description})`
|
||||
: selectedValue.description
|
||||
}`
|
||||
: selectedValue &&
|
||||
'name' in selectedValue &&
|
||||
'id' in selectedValue
|
||||
? `${selectedValue.name}`
|
||||
: placeholder
|
||||
? placeholder
|
||||
: 'From URL'}
|
||||
|
||||
Reference in New Issue
Block a user