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

Push undefined values does not work #158

Open
patoperpetua opened this issue Aug 17, 2022 · 1 comment
Open

Push undefined values does not work #158

patoperpetua opened this issue Aug 17, 2022 · 1 comment
Labels

Comments

@patoperpetua
Copy link

When pushing undefined values for a published key, the values does not refresh.
When going to gtm console it shows the values correctly but the plugin does not update state when sending undefined values

@patoperpetua
Copy link
Author

I think the problem may come from the file App.js

setOption = (option, value) => { let options = this.state.options; if (typeof value === 'boolean') { options[option] = value; } else if (typeof value === 'string') { if (value.length === 0) { options[option] = []; } else { options[option] = value.split(';'); } <<<<<<<<<<<<<<<<< a missing condition when the value provided is undefined }

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

No branches or pull requests

1 participant