Skip to content

Commit

Permalink
Modal: no undefined firewall
Browse files Browse the repository at this point in the history
The firewall configuration now defaults to an empty object. This
prevents old blueprints from erroring when they have no firewall
declared.
  • Loading branch information
jkozol committed Jan 30, 2023
1 parent 490a9a1 commit a6d9031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Modal/FirewallCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const FirewallCard = ({ blueprint }) => {
setIsModalOpen(false);
};

const firewall = blueprint?.customizations?.firewall;
const firewall = blueprint?.customizations?.firewall || {};

const FirewallCardEdit = () => {
return (
Expand Down

0 comments on commit a6d9031

Please sign in to comment.