frontend: adapting to migration

This commit is contained in:
ManishMadan2882
2024-08-14 17:15:20 +05:30
parent deeffbf77d
commit 0891ef6d0a
6 changed files with 94 additions and 97 deletions

View File

@@ -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'}