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

Fix refreshing of course members page after actions #4995

Merged
merged 2 commits into from
Sep 22, 2023

Conversation

jorg-vr
Copy link
Contributor

@jorg-vr jorg-vr commented Sep 22, 2023

Closes #4968

@jorg-vr jorg-vr added the bug Something isn't working label Sep 22, 2023
@jorg-vr jorg-vr requested a review from a team as a code owner September 22, 2023 08:02
@jorg-vr jorg-vr self-assigned this Sep 22, 2023
@jorg-vr jorg-vr requested review from bmesuere and chvp and removed request for a team September 22, 2023 08:02
app/views/courses/_reload_users.js.erb Outdated Show resolved Hide resolved
Copy link
Member

@bmesuere bmesuere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the problem here was that getElementById returned null which caused innerText to fail, which in turn stopped the execution of the rest of the code? I expect we'll have more issues like this due to the jquery migration.

Too bad you can't use optional chaining in the left hand side of an assignment and that there is no way to set innerText using a function.

@jorg-vr jorg-vr merged commit 5809976 into main Sep 22, 2023
13 checks passed
@jorg-vr jorg-vr deleted the fix/users-dont-refresh branch September 22, 2023 08:47
@jorg-vr jorg-vr temporarily deployed to naos September 22, 2023 08:47 — with GitHub Actions Inactive
@jorg-vr jorg-vr temporarily deployed to production September 22, 2023 08:51 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delete student from course
3 participants