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: do not mutate this.attrs and this.actions #23125

Merged
merged 2 commits into from Aug 17, 2023

Conversation

jjaffeux
Copy link
Contributor

Prior to this fix we would always re-set this.attrs with this.attrs when defined, which is both wasteful but also dangerous as this.attrs can possibly error when mutated.

Prior to this fix we would always re-set `this.attrs` with `this.attrs` when defined, which is both wasteful but also dangerous as `this.attrs` can possibly error when mutated.
@jjaffeux jjaffeux merged commit 95c4d97 into discourse:main Aug 17, 2023
13 checks passed
@jjaffeux jjaffeux deleted the sk-deprecation-mutation branch August 17, 2023 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants