wger-project / wger

Self hosted FLOSS fitness/workout, nutrition and weight tracker
https://wger.de
GNU Affero General Public License v3.0
3.2k stars 585 forks source link

Unable to edit exercise #1742

Open seyfeb opened 3 months ago

seyfeb commented 3 months ago

For some exercises that I created I am not able to edit them anymore.

Steps to Reproduce

  1. Go to an exercise page
  2. Select Edit

Expected results:

The exercise editor form with previously input values.

Actual results:

A blank page only with the surrounding layout (page navigation etc.).

Four errors are logged in the browser:

Browser console errors ``` TypeError: n.data.find(...) is undefined getOptionLabel https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1 // ... TypeError: e is undefined // ... TypeError: e is undefined // ... TypeError: n.data.find(...) is undefined getOptionLabel https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1 // ... ```

The container does not log very much

Container logs ``` wger_nginx | 172.18.0.6 - - [26/Jul/2024:12:52:55 +0000] "GET /api/v2/check-permission/?permission=exercises.delete_exercisevideo HTTP/1.1" 200 15 "https://wger.mydomain.com/en/exercise/1220/view-base/lateral-raise-machine" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0" "91.3.121.228" wger_nginx | 172.18.0.6 - - [26/Jul/2024:12:52:55 +0000] "GET /api/v2/check-permission/?permission=exercises.delete_exerciseimage HTTP/1.1" 200 15 "https://wger.mydomain.com/en/exercise/1220/view-base/lateral-raise-machine" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0" "91.3.121.228" ```

This may be related to exercises that are not saved correctly during creation, see #1738

wger version 2.3.0a2