Remove _source field from table results as we are showing each source field as column
This commit is contained in:
@@ -571,13 +571,6 @@ const createEmptyDataFrame = (
|
||||
}).parse = (v: any) => {
|
||||
return v || '';
|
||||
};
|
||||
} else {
|
||||
series.addField({
|
||||
name: '_source',
|
||||
type: FieldType.string,
|
||||
}).parse = (v: any) => {
|
||||
return JSON.stringify(v, null, 2);
|
||||
};
|
||||
}
|
||||
|
||||
if (logLevelField) {
|
||||
@@ -596,6 +589,10 @@ const createEmptyDataFrame = (
|
||||
if (fieldNames.includes(propName)) {
|
||||
continue;
|
||||
}
|
||||
// Do not add _source field as we are showing each _source field in table instead.
|
||||
if (propName === '_source') {
|
||||
continue;
|
||||
}
|
||||
|
||||
series.addField({
|
||||
name: propName,
|
||||
|
||||
Reference in New Issue
Block a user