hpi-studyu / studyu

StudyU is a fully‑functional platform for personalized N‑of‑1 treatment advice.
https://StudyU.health
MIT License
21 stars 11 forks source link

fix: Next day button broken in preview/debug mode #605

Closed johannesvedder closed 4 months ago

johannesvedder commented 5 months ago

The next day button did not work when a intervention was filled out, because the bool result of the intervention is not a QuestionnaireState. This lead to an exception and no entries were deleted. This PR includes a check again this type of error: .where((p) => p.result.result is QuestionnaireState)

github-actions[bot] commented 5 months ago

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ REPOSITORY git_diff yes no 0.06s

See detailed report in MegaLinter reports _Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff_

_MegaLinter is graciously provided by OX Security_

github-actions[bot] commented 5 months ago

Visit the preview URL for this PR (updated for commit 8299a96):

(expires Thu, 25 Apr 2024 12:57:55 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 2149dad49ed83535217e50d5c18c0c8c90da629b