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 Redux mutation issue in AdminQuickActions #6213

Merged

Conversation

Abishekcs
Copy link
Contributor

@Abishekcs Abishekcs commented Feb 25, 2025

What this PR does

Replaces direct state mutation with a Redux dispatch call.

Source of Mutation

  • Directly mutating the course object inside the component.

Fix

  • Used dispatch(updateCourse({ ...course, last_reviewed: { ... } })).

Screenshots

Before:

Before.Mutation.Fix.mp4

After:

After.Mutaion.Fix.mp4

@ragesoss ragesoss merged commit 1e1d759 into WikiEducationFoundation:master Feb 25, 2025
1 check passed
@ragesoss
Copy link
Member

Thanks @Abishekcs!

@Abishekcs Abishekcs deleted the fix/redux-mutation-update branch February 25, 2025 18:28
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

Successfully merging this pull request may close these issues.

2 participants