Skip to content

fix: ignore null and undefined grouped attribute values - #36

Open
Archanachaurasiya30 wants to merge 1 commit into
NaturalIntelligence:mainfrom
Archanachaurasiya30:fix/skip-null-grouped-attributes
Open

Archanachaurasiya30 wants to merge 1 commit into
NaturalIntelligence:mainfrom
Archanachaurasiya30:fix/skip-null-grouped-attributes

Conversation

@Archanachaurasiya30

Copy link
Copy Markdown

Description

Fixes #35.

When using attributesGroupName, null and undefined attribute values were incorrectly serialized as the strings "null" and "undefined".

This change skips null and undefined values before building grouped attributes.

Changes

  • Skip null and undefined grouped attribute values.
  • Add a regression test covering both cases.

Testing

  • Full test suite: 171 specs, 0 failures, 1 pending.
  • Regression test passes.

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

Successfully merging this pull request may close these issues.

attributesGroupName writes null and undefined attribute values as text

1 participant