Skip to content

Commit 10e6525

Browse files
author
cchaos
committed
Remove comment
1 parent 8752c1d commit 10e6525

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

  • src/legacy/core_plugins/kibana/public/discover/np_ready/angular/directives/field_name

src/legacy/core_plugins/kibana/public/discover/np_ready/angular/directives/field_name/field_name.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ export function FieldName({ field, fieldName, fieldType, useShortDots, fieldIcon
4747
const name = field ? String(field.name) : String(fieldName);
4848
const displayName = useShortDots ? shortenDottedString(name) : name;
4949

50-
// const className = classNames({
51-
// 'dscField--noResults': field ? !field.rowCount && !field.scripted : false,
52-
// // this is currently not styled, should display an icon
53-
// scripted: field ? field.scripted : false,
54-
// });
55-
5650
const noResults = field ? !field.rowCount && !field.scripted : false;
5751

5852
const className = classNames('dscFieldName', {
@@ -65,7 +59,7 @@ export function FieldName({ field, fieldName, fieldType, useShortDots, fieldIcon
6559
<FieldIcon
6660
type={type}
6761
label={typeName}
68-
scripted={field && field.scripted}
62+
scripted={field ? field.scripted : false}
6963
{...fieldIconProps}
7064
/>
7165
</EuiFlexItem>

0 commit comments

Comments
 (0)