Skip to content

Commit

Permalink
[Cloud Security][BUG] preventing potential crash when missing multi a…
Browse files Browse the repository at this point in the history
…ccount field (#163051)
  • Loading branch information
JordanSh authored Aug 3, 2023
1 parent 995fb4f commit 4e9351f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type AwsAccountType = 'single_account' | 'organization_account';
const CLOUDBEAT_AWS = 'cloudbeat/cis_aws';

const getAwsAccountType = (input?: PackagePolicyInput): AwsAccountType | undefined =>
input?.streams[0].vars?.['aws.account_type'].value;
input?.streams[0].vars?.['aws.account_type']?.value;

export const useCreateCloudFormationUrl = ({
enrollmentAPIKey,
Expand Down

0 comments on commit 4e9351f

Please sign in to comment.