Skip to content

Commit

Permalink
pr suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
semd committed Aug 13, 2021
1 parent 22a85ea commit 8138fb6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,13 @@ export class AlertsClient {
config
);
if (query != null && typeof query === 'object') {
// @ts-expect-error
builtQuery.bool.must.push(query);
return {
...builtQuery,
bool: {
...builtQuery.bool,
must: [...builtQuery.bool.must, query],
},
};
}
return builtQuery;
} catch (exc) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export const BodyComponent = React.memo<StatefulBodyProps>(
totalItems={totalItems}
filterStatus={filterStatus}
query={filterQuery}
indexName={indexNames.join(',')}
indexName={indexNames.join()}
onActionSuccess={onAlertStatusActionSuccess}
onActionFailure={onAlertStatusActionFailure}
refetch={refetch}
Expand Down

0 comments on commit 8138fb6

Please sign in to comment.