Skip to content

Commit

Permalink
update fetch call to pass in data source id
Browse files Browse the repository at this point in the history
data source id is always undefined because log explorer doesn't support
multi-datasource. passing undefined fixes the parameters so UI shows PPL
errors in toasts

Signed-off-by: Joshua Li <[email protected]>
  • Loading branch information
joshuali925 committed Sep 10, 2024
1 parent 780bc34 commit 7b5cc9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const useFetchEvents = ({ pplService, requestParams }: IFetchEventsParams
) => {
setIsEventsLoading(true);
return pplService
.fetch({ query, format }, errorHandler)
.fetch({ query, format }, undefined, errorHandler)
.then((res: any) => handler(res))
.catch((err: any) => {
console.error(err);
Expand Down

0 comments on commit 7b5cc9f

Please sign in to comment.