Skip to content

Commit

Permalink
[BUG][OBX-UX-MNGMT] Apply the query on the EmbeddableComponent instea…
Browse files Browse the repository at this point in the history
…d of the base layer (elastic#171861)

## Summary

It fixes elastic#171710 

<img width="603" alt="Screenshot 2023-11-23 at 14 03 57"
src="https://github.com/elastic/kibana/assets/6838659/e7009716-45d2-41e0-9324-7159c2a9fb5e">
  • Loading branch information
fkanout authored Nov 24, 2023
1 parent 56c494f commit 8138150
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,7 @@ export function PreviewChart({
decimals: isPercent ? 0 : 2,
},
},
filter: {
language: 'kuery',
query: filterQuery || '',
},
};

const xYDataLayerOptions: XYLayerOptions = {
buckets: {
type: 'date_histogram',
Expand Down Expand Up @@ -252,7 +247,6 @@ export function PreviewChart({
value: layer.value,
label: layer.label,
format: layer.format,
filter: layer.filter,
})),
options: xYDataLayerOptions,
});
Expand Down Expand Up @@ -333,6 +327,10 @@ export function PreviewChart({
timeRange={{ from: `now-${timeSize * 20}${timeUnit}`, to: 'now' }}
attributes={attributes}
disableTriggers={true}
query={{
language: 'kuery',
query: filterQuery || '',
}}
/>
</div>
);
Expand Down

0 comments on commit 8138150

Please sign in to comment.