ButtonCascader: Fix error in Explore (#21585)

* Add children and remove nullified icon

* Revert data format with children

* Update test

* Revert styles

* Update types
This commit is contained in:
Tobias Skarhed
2020-01-17 18:07:40 +01:00
committed by GitHub
parent 59469e14cf
commit fef31acbf2
7 changed files with 32 additions and 28 deletions

View File

@@ -9,7 +9,7 @@ describe('groupMetricsByPrefix()', () => {
expect(groupMetricsByPrefix(['foo_metric'])).toMatchObject([
{
value: 'foo',
items: [
children: [
{
value: 'foo_metric',
},
@@ -22,7 +22,7 @@ describe('groupMetricsByPrefix()', () => {
expect(groupMetricsByPrefix(['foo_metric'], { foo_metric: [{ type: 'TYPE', help: 'my help' }] })).toMatchObject([
{
value: 'foo',
items: [
children: [
{
value: 'foo_metric',
title: 'foo_metric\nTYPE\nmy help',
@@ -44,7 +44,7 @@ describe('groupMetricsByPrefix()', () => {
expect(groupMetricsByPrefix([':foo_metric:'])).toMatchObject([
{
value: RECORDING_RULES_GROUP,
items: [
children: [
{
value: ':foo_metric:',
},