mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Use name for Controls Data View picker (#138313)
This commit is contained in:
parent
e0b4b1baa3
commit
4226cbf2e6
1 changed files with 3 additions and 3 deletions
|
@ -85,11 +85,11 @@ export function DataViewPicker({
|
|||
{...selectableProps}
|
||||
searchable
|
||||
singleSelection="always"
|
||||
options={dataViews.map(({ title, id }) => ({
|
||||
options={dataViews.map(({ name, id, title }) => ({
|
||||
key: id,
|
||||
label: title,
|
||||
label: name ?? title,
|
||||
value: id,
|
||||
'data-test-subj': `data-view-picker-${title}`,
|
||||
'data-test-subj': `data-view-picker-${name ?? title}`,
|
||||
checked: id === selectedDataViewId ? 'on' : undefined,
|
||||
}))}
|
||||
onChange={(choices) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue