Skip to content

fix: prevent treatments features object serialization#1333

Open
Braluna-pp wants to merge 1 commit into
developfrom
hotfix/treatments-features-object
Open

fix: prevent treatments features object serialization#1333
Braluna-pp wants to merge 1 commit into
developfrom
hotfix/treatments-features-object

Conversation

@Braluna-pp

Copy link
Copy Markdown
Collaborator

Description

Fixes the treatments Zoid features prop so it reads props.features from Zoid value options before calling getFeatures. Previously value: getFeatures received the whole Zoid value-options object and could stringify it into [object Object],native-modal in the treatments iframe query.

Screenshots / Videos

N/A

Testing instructions

  • npm test -- --runTestsByPath tests/unit/spec/src/zoid/treatments/component.test.js
  • npx eslint src/library/zoid/treatments/component.js tests/unit/spec/src/zoid/treatments/component.test.js
  • git diff --check
  • npm run lint
  • npm test

Review

Ready for initial review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant