Skip to content

Commit

Permalink
Add dataSourceId in data layer search request
Browse files Browse the repository at this point in the history
  • Loading branch information
junqiu-lei committed Jun 6, 2024
1 parent d53bc2d commit b7ab48f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/model/layerRenderController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export const prepareDataLayerSource = (
...(timeFilters ? [timeFilters] : []),
]);
}
const dataSourceId = indexPattern?.dataSourceRef?.id;
const request = {
params: {
index: indexPatternRefName,
Expand All @@ -85,6 +86,7 @@ export const prepareDataLayerSource = (
query: mergedQuery,
},
},
...(!!dataSourceId && { dataSourceId }),
};

const search$ = data.search.search(request).subscribe({
Expand Down

0 comments on commit b7ab48f

Please sign in to comment.