Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Feb 12, 2020
1 parent 14e2761 commit a1595c1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* under the License.
*/

import { get } from 'lodash';
import React, { useEffect, useMemo } from 'react';
import { EuiIconTip, EuiPanel } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
Expand All @@ -43,7 +44,7 @@ function TableOptions({
}),
},
...tabifyGetColumns(aggs.getResponseAggs(), true)
.filter(col => col.aggConfig.type.getFormat(col.aggConfig).type.id === 'number')
.filter(col => get(col.aggConfig.type.getFormat(col.aggConfig), 'type.id') === 'number')
.map(({ name }) => ({ value: name, text: name })),
],
[aggs, stateParams.percentageCol, stateParams.dimensions]
Expand Down

0 comments on commit a1595c1

Please sign in to comment.