Skip to content

Conversation

@rasmi
Copy link
Contributor

@rasmi rasmi commented Dec 15, 2025

Survey questions with conditions could become invalid when reordered (e.g., moving a question with a condition up before the question it depends on). This caused the question to not render in the participant view.

Added sanitizeQuestionConditions() which automatically clears conditions that reference questions that no longer exist or come later in the survey. This runs whenever questions are moved or deleted.

This WON'T fix existing experiments that have configurations from prior to this change.

@rasmi rasmi requested a review from vivtsai December 15, 2025 22:27
@vivtsai vivtsai merged commit e043a8b into PAIR-code:main Dec 15, 2025
5 checks passed
@rasmi rasmi deleted the fix-condition-surveys branch December 15, 2025 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants