Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to edit exercise #1742

Open
seyfeb opened this issue Jul 26, 2024 · 0 comments
Open

Unable to edit exercise #1742

seyfeb opened this issue Jul 26, 2024 · 0 comments

Comments

@seyfeb
Copy link

seyfeb commented Jul 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant