Skip to content

Commit

Permalink
Merge pull request #605 from hpi-studyu/fix/preview-next-day
Browse files Browse the repository at this point in the history
fix: Next day button broken in preview/debug mode
  • Loading branch information
johannesvedder authored Apr 23, 2024
2 parents 10f942f + 8299a96 commit 4858689
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core/lib/src/models/tables/study_subject.dart
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,11 @@ class StudySubject extends SupabaseObjectFunctions<StudySubject> {
rethrow;
}

final List<Answer> answers = progress
// Filter out all multimodal answers and remove their paths from the blob storage
final observationPaths = progress
.where((p) => p.result.result is QuestionnaireState)
.map((p) => (p.result.result as QuestionnaireState).answers.values)
.expand((answers) => answers)
.toList();

final List<String> observationPaths = answers
.where(
(e) => e.question == AudioRecordingQuestion.questionType || e.question == ImageCapturingQuestion.questionType,
)
Expand Down

0 comments on commit 4858689

Please sign in to comment.