AsyncSegment: Display no-options placeholder for no items status (#70995)
AsyncSegment: Display no options dropdown placeholder for no items status
This commit is contained in:
@@ -110,9 +110,5 @@ function mapStateToNoOptionsMessage<T>(state: AsyncState<Array<SelectableValue<T
|
||||
return t('grafana-ui.segment-async.error', 'Failed to load options');
|
||||
}
|
||||
|
||||
if (!Array.isArray(state.value) || state.value.length === 0) {
|
||||
return t('grafana-ui.segment-async.no-options', 'No options found');
|
||||
}
|
||||
|
||||
return '';
|
||||
return t('grafana-ui.segment-async.no-options', 'No options found');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user