Skip to content

Commit

Permalink
fix(productions): fix url id
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Oct 9, 2024
1 parent 1ab2b65 commit 17cfbb9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const MessagePreview = ({
return updatedList;
});
};
const formattedProductionId = data.id.replace(/\//g, "%2f");
const formattedProductionId = data.objectId.replace(/\//g, "%2f");

return (
<Container fluid>
Expand Down Expand Up @@ -142,7 +142,7 @@ const MessagePreview = ({
}`}
target="_blank"
rel="noreferrer noopener external"
href={`https://www.idref.fr/${data.id.replace("idref", "")}`}
href={`https://www.idref.fr/${data.objectId.replace("idref", "")}`}
onClick={() => setIdRefClicked(true)}
>
IdRef
Expand Down

0 comments on commit 17cfbb9

Please sign in to comment.