mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Table] Inspector displays only visible content (#124677)
* [Table] Not send hidden columns to the inspector * Fix tests
This commit is contained in:
parent
a57beab8aa
commit
bf7fae9e0a
1 changed files with 6 additions and 1 deletions
|
@ -126,6 +126,11 @@ export const createTableVisFn = (): TableExpressionFunctionDefinition => ({
|
|||
},
|
||||
fn(input, args, handlers) {
|
||||
const convertedData = tableVisResponseHandler(input, args);
|
||||
const inspectorData = {
|
||||
rows: convertedData?.table?.rows ?? input.rows,
|
||||
columns: convertedData?.table?.columns ?? input.columns,
|
||||
type: 'datatable',
|
||||
} as Datatable;
|
||||
|
||||
if (handlers?.inspectorAdapters?.tables) {
|
||||
const argsTable: Dimension[] = [
|
||||
|
@ -158,7 +163,7 @@ export const createTableVisFn = (): TableExpressionFunctionDefinition => ({
|
|||
}),
|
||||
]);
|
||||
}
|
||||
const logTable = prepareLogTable(input, argsTable);
|
||||
const logTable = prepareLogTable(inspectorData, argsTable);
|
||||
handlers.inspectorAdapters.tables.logDatatable('default', logTable);
|
||||
}
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue