Skip to content

Commit

Permalink
fix(amazon/subnet): fix NPE when AWSProviderSettings.serverGroups is … (
Browse files Browse the repository at this point in the history
#9049)

Co-authored-by: Chris Thielen <christopherthielen@users.noreply.github.com>
  • Loading branch information
link108 and christopherthielen committed Mar 29, 2021
1 parent 78f7d5a commit b397666
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class SubnetSelectField extends React.Component<ISubnetSelectFieldProps>
const { labelColumns, helpKey, component, region, field, ...otherProps } = this.props;
const value = component[field];
const isRecommended = (AWSProviderSettings.serverGroups?.recommendedSubnets || []).includes(value);
const { subnetWarning } = AWSProviderSettings.serverGroups;
const subnetWarning = AWSProviderSettings.serverGroups?.subnetWarning;
return (
<div className="form-group">
<div className={`col-md-${labelColumns} sm-label-right`}>
Expand Down

0 comments on commit b397666

Please sign in to comment.