Skip to content

Commit

Permalink
fix timestamp overriding issue (#449)
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Wei <menwe@amazon.com>
  • Loading branch information
mengweieric authored May 4, 2023
1 parent 58be126 commit ffa18c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/components/event_analytics/explorer/explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export const Explorer = ({
},
{
appBaseQuery,
query: rawQueryStr,
query: curQuery,
startingTime,
endingTime,
isLiveTailOn: isLiveTailOnRef.current,
Expand Down
4 changes: 2 additions & 2 deletions public/services/data_fetchers/ppl/ppl_data_fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class PPLDataFetcher extends DataFetcherBase implements IDataFetcher {
) {
super();
// index/index patterns for this search
this.queryIndex = this.getIndex(this.searchParams.query);
this.queryIndex = this.getIndex(this.searchParams.query.rawQuery);
}

async setTimestamp(index: string) {
Expand Down Expand Up @@ -186,7 +186,7 @@ export class PPLDataFetcher extends DataFetcherBase implements IDataFetcher {
tabId,
query: {
finalQuery,
[RAW_QUERY]: query,
[RAW_QUERY]: query.rawQuery,
[SELECTED_TIMESTAMP]: curTimestamp,
},
})
Expand Down

0 comments on commit ffa18c4

Please sign in to comment.