Skip to content

fix(questiontype): handle potential null values in dropdown options#1173

Merged
ccailly merged 4 commits intomainfrom
fix/form-question-handle-null-value
Apr 1, 2026
Merged

fix(questiontype): handle potential null values in dropdown options#1173
ccailly merged 4 commits intomainfrom
fix/form-question-handle-null-value

Conversation

@ccailly
Copy link
Copy Markdown
Contributor

@ccailly ccailly commented Apr 1, 2026

Checklist before requesting a review

Please delete options that are not relevant.

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.

Description

This pull request makes a small but important improvement to the way dropdown answers are formatted in the formatRawAnswer method. The change ensures that if an option ID does not correspond to an existing item, an empty string is used instead of causing an error.

@ccailly ccailly requested review from Rom1-B and stonebuzz April 1, 2026 09:22
@ccailly ccailly merged commit 62116eb into main Apr 1, 2026
3 checks passed
@ccailly ccailly deleted the fix/form-question-handle-null-value branch April 1, 2026 14:11
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.

4 participants