Skip to content

Commit

Permalink
Merge pull request #102 from wwt/correctIndexIncrementing
Browse files Browse the repository at this point in the history
Only increment the index if it is not a Nonvalue
  • Loading branch information
goxiaoy committed Jul 14, 2023
2 parents 89ebdbb + 73449ba commit d3968f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ui/survey_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class SurveyWidgetState extends State<SurveyWidget> {
for (final kv in _controlsMap.entries) {
var visible = true;
status[kv.key] = ElementStatus(indexAll: index);
if (visible) {
if (visible && kv.key is! Nonvalue) {
index++;
}
}
Expand Down

0 comments on commit d3968f9

Please sign in to comment.