Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConsentManagement: site crashes while visiting personal data policy page from consent management modal #317

Open
ocruze opened this issue Sep 30, 2024 · 1 comment

Comments

@ocruze
Copy link
Contributor

ocruze commented Sep 30, 2024

Hi,
I'm not sure if it's caused by react-dsfr or by the base dsfr library (or maybe I'm doing something wrong), but what happens is: if I try to visit the personal data policy page, the site crashes
image

image

The crash seems to occur at line 4682 of dsfr.module.js:
image

This is how I'm creating the consent manager :

createConsentManagement({
  personalDataPolicyLinkProps: routes.personal_data().link // type-route
})

Temporarily, I've changed it to personalDataPolicyLinkProps: { href: routes.personal_data().href }, but it would be nice to be able to fix the error. Any idea how to solve it?

@garronej
Copy link
Collaborator

Hello @ocruze,

Can we have a repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants