hygeia icon indicating copy to clipboard operation
hygeia copied to clipboard

FunctionClauseError: no function clause matching in anonymous fn/1 in HygeiaWeb.CaseLive.Index.sort_params/1

Open sentry-joshmartin-ch[bot] opened this issue 3 years ago • 0 comments

Sentry Issue: BACKEND-1MC

FunctionClauseError: no function clause matching in anonymous fn/1 in HygeiaWeb.CaseLive.Index.sort_params/1
  File "lib/hygeia_web/live/case_live/index.ex", line 309, in anonymous fn/1 in HygeiaWeb.CaseLive.Index.sort_params/1
  File "lib/enum.ex", line 1582, in Enum."-map/2-lists^map/1-0-"/2
  File "lib/enum.ex", line 1582, in Enum."-map/2-lists^map/1-0-"/2
  File "lib/hygeia_web/live/case_live/index.ex", line 309, in HygeiaWeb.CaseLive.Index.sort_params/1
  File "lib/hygeia_web/live/case_live/index.ex", line 152, in HygeiaWeb.CaseLive.Index.list_cases/1
...
(3 additional frame(s) were not displayed)

(FunctionClauseError no function clause matching in anonymous fn/1 in HygeiaWeb.CaseLive.Index.sort_params/1)

TODO

  • [ ] Raise 400 when an invalid parameter is supplied instead of a 500
  • [ ] Fix in all lists

References

  • https://app.forecast.it/project/P-205/scoping/T2919