Skip to content

Commit

Permalink
Merge pull request #1127 from InseeFr/fix/msd
Browse files Browse the repository at this point in the history
fix: solve issues with MSD documentation
  • Loading branch information
PierreVasseur authored Jan 20, 2025
2 parents c755a42 + 8803ff1 commit ec4943a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/packages/modules-operations/msd/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ const MSDContainerWithParent = (props) => {
const withParams = (Component) => {
return (props) => {
const params = useParams();
const { baseUrl, mode, disableSectionAnchor, parentType } = useLoaderData();
const data = useLoaderData();

const { baseUrl, mode, disableSectionAnchor, parentType } = data ?? {};
return (
<Component
{...props}
Expand Down

0 comments on commit ec4943a

Please sign in to comment.