Skip to content

Commit

Permalink
[MDS-5538] Bug when opening view permit with no previous amendments (#…
Browse files Browse the repository at this point in the history
…2736)

set default value of empty array for esup amendments
  • Loading branch information
taraepp authored Oct 23, 2023
1 parent 99167ff commit 5cde9a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export const ExplosivesPermit: FC<ExplosivesPermitProps> = ({
props: {
title: "View Explosives Storage & Use Permit",
explosivesPermit: record,
parentPermit,
parentPermit: { explosives_permit_amendments: [], ...parentPermit },
mine,
closeModal: props.closeModal,
handleOpenExplosivesPermitCloseModal,
Expand Down

0 comments on commit 5cde9a8

Please sign in to comment.