mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
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:
parent
4818568c65
commit
ad5a36e7a3
@ -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 '';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user