Skip to content

Commit

Permalink
- additional PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-goldstein committed Dec 24, 2024
1 parent 4931a29 commit 4f83f49
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const AlertSelectionQueryComponent: React.FC<Props> = ({
// 2) The user clicks the refresh button
//
// Also to match the behavior of Discover, we must NOT call `setQuery` with
// the `unSubmittedQuery` query when the user clicks the `Save` button button.
// the `unSubmittedQuery` query when the user clicks the `Save` button.
const [unSubmittedQuery, setUnSubmittedQuery] = React.useState<Query['query'] | undefined>(
undefined
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ describe('useAttackDiscovery', () => {
'/internal/elastic_assistant/attack_discovery',
{
body: `{"alertsIndexPattern":"alerts-index-pattern","anonymizationFields":[],"replacements":{},"size":${SIZE},"subAction":"invokeAI","apiConfig":{"connectorId":"test-id","actionTypeId":".gen-ai"}}`,
method: 'POST',
version: '1',
}
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ export const useAttackDiscovery = ({
// call the internal API to generate attack discoveries:
const rawResponse = await http.post('/internal/elastic_assistant/attack_discovery', {
body: JSON.stringify(bodyWithOverrides),
method: 'POST',
version: ELASTIC_AI_ASSISTANT_INTERNAL_API_VERSION,
});
setIsLoadingPost(false);
Expand Down

0 comments on commit 4f83f49

Please sign in to comment.