Skip to content

Commit

Permalink
Resolve list and test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
brijesh-elastic committed Jul 16, 2024
1 parent 51d4bea commit c9636fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ export const connectorTypes: string[] = [
'.torq',
'.opsgenie',
'.tines',
'.thehive',
'.gen-ai',
'.bedrock',
'.gemini',
'.d3security',
'.resilient',
'.thehive',
'.sentinelone',
'.crowdstrike',
'.cases',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ const TheHiveParamsFields: React.FunctionComponent<ActionParamsProps<ExecutorPar
index
);
}
}, [actionParams]);
}, [actionParams, editAction, index]);

useEffect(() => {
editAction('subAction', eventAction, index);
}, [eventAction]);
}, [eventAction, editAction, index]);

const setEventActionType = (eventActionType: SUB_ACTION) => {
const subActionParams =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class TheHiveConnector extends CaseConnector<
this.url = this.config.url;
this.organisation = this.config.organisation;
this.apiKey = this.secrets.apiKey;
this.urlWithoutTrailingSlash = this.url.endsWith('/') ? this.url.slice(0, -1) : this.url;
this.urlWithoutTrailingSlash = this.url?.endsWith('/') ? this.url.slice(0, -1) : this.url;
}

private getAuthHeaders() {
Expand Down

0 comments on commit c9636fe

Please sign in to comment.