diff --git a/web/src/components/FOI/Home/CreateResponsePDF/useSaveRedlineForSignOff.js b/web/src/components/FOI/Home/CreateResponsePDF/useSaveRedlineForSignOff.js index 7116eb59..0ad2cee9 100644 --- a/web/src/components/FOI/Home/CreateResponsePDF/useSaveRedlineForSignOff.js +++ b/web/src/components/FOI/Home/CreateResponsePDF/useSaveRedlineForSignOff.js @@ -244,10 +244,10 @@ const useSaveRedlineForSignoff = (initDocInstance, initDocViewer) => { let incompatableList = []; // Custom public bodies/consults do not exist in allPublicBodies data (BE program area data) and are stored as simple strings with pageflag data (in other array attribute). - // Therefore, if publicBodyInfo cannot be found in allPublicBodies, the publicbody is a custom one and we will create its 'divison' data in the FE with a random unique id (date.now()), and its publicBodyID (which is its name as a string) for consult package creation purposes + // Therefore, if publicBodyInfo cannot be found in allPublicBodies, the publicbody is a custom one and we will create its 'divison' data in the FE with a random unique id (Math.floor(Math.random() * 100000)), and its publicBodyID (which is its name as a string) for consult package creation purposes const publicBodyInfo = allPublicBodies.find((body) => body.programareaid === publicBodyId); newDocList.push({ - divisionid: publicBodyInfo ? publicBodyInfo.programareaid : Date.now(), + divisionid: publicBodyInfo ? publicBodyInfo.programareaid : Math.floor(Math.random() * 100000), divisionname: publicBodyInfo ? publicBodyInfo.name : publicBodyId, documentlist: publicBodyDocList, incompatableList: incompatableList,