Skip to content

Commit

Permalink
Update create-policy.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
yenienserrano authored Jul 11, 2023
1 parent 75cfc5f commit 2409247
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export const CreatePolicyFlyout = ({ closeFlyout }) => {
},
});
const resultData = result?.data?.data;
if (resultData.failed_items && resultData.failed_items.length) {
if (resultData?.failed_items && resultData?.failed_items?.length) {
return;
}
ErrorHandler.info('Policy was successfully created', '');
Expand Down

0 comments on commit 2409247

Please sign in to comment.