Skip to content

Commit

Permalink
removing undefined check
Browse files Browse the repository at this point in the history
  • Loading branch information
benakansara committed Apr 26, 2023
1 parent c74119d commit ca38385
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function AlertsSearchBar({

const onSearchQuerySubmit = useCallback(
({ dateRange, query: nextQuery }: { dateRange: TimeRange; query?: Query }) => {
onQuerySubmit?.({
onQuerySubmit({
dateRange,
query: typeof nextQuery?.query === 'string' ? nextQuery.query : undefined,
});
Expand All @@ -62,7 +62,7 @@ export function AlertsSearchBar({
[onQueryChange, setQueryLanguage]
);
const onRefresh = ({ dateRange }: { dateRange: TimeRange }) => {
onQuerySubmit?.({
onQuerySubmit({
dateRange,
});
};
Expand Down

0 comments on commit ca38385

Please sign in to comment.