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

dataCategories property is stripped out from new GVL() #441

Open
emilisense opened this issue Mar 8, 2024 · 1 comment
Open

dataCategories property is stripped out from new GVL() #441

emilisense opened this issue Mar 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@emilisense
Copy link

Version
1.5.6
Module (core, cmpapi, cli, stub, or testing)
Core
Describe with reproduction steps – What is the expected behavior?
It seems that when either passing a ready object or setting GVL.baseUrl, the dataCategories property is being stripped out and cannot be visible in the gvl object after initialization. Is there any particular reason for this to be stripped out or it is just missed?

The fix for this is to add this.dataCategories = gvlObject.dataCategories; in the populate function, before the following check:
if (this.isVendorList(gvlObject)) {

@emilisense emilisense added the bug Something isn't working label Mar 8, 2024
@HeinzBaumann
Copy link
Collaborator

HeinzBaumann commented Mar 11, 2024

Thank you @emilisense. This is a bug. We will need to fix this. -> @lamrowena

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants