mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-27 01:25:36 -05:00
populate drop down options values from options source (#13870)
This commit is contained in:
@@ -640,6 +640,9 @@ async function processOptionsTypeField(context: FieldContext): Promise<void> {
|
||||
optionsComponent = await processRadioOptionsTypeField(context, getRadioOptions);
|
||||
} else {
|
||||
throwUnless(context.fieldInfo.options.optionsType === OptionsType.Dropdown, loc.optionsTypeRadioOrDropdown);
|
||||
if (optionsSource?.provider) {
|
||||
context.fieldInfo.options.values = await optionsSource.provider.getOptions();
|
||||
}
|
||||
optionsComponent = processDropdownOptionsTypeField(context);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user