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 setState error in challenge editor #2226

Closed
wants to merge 1 commit into from

Conversation

CollinBeczak
Copy link
Collaborator

Fixes setState error in the challenge create/edit form.

@codecov-commenter
Copy link

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (0ab7543) 23.72% compared to head (a87e0a1) 23.71%.

Files Patch % Lines
...ets/ProjectManagersWidget/ProjectManagersWidget.js 0.00% 6 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2226      +/-   ##
==========================================
- Coverage   23.72%   23.71%   -0.01%     
==========================================
  Files         648      648              
  Lines       22344    22347       +3     
  Branches     6896     6896              
==========================================
  Hits         5300     5300              
- Misses      14253    14256       +3     
  Partials     2791     2791              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

} catch (error) {
console.error("Error fetching project managers:", error)
this.setState({ loadingManagers: false })
}
Copy link
Contributor

Choose a reason for hiding this comment

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

this logicially doesn't solve anything and using async in a lifecycle method is an antipattern

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Im not even seeing the error anymore with the previous code, so ill just remove this pr for now and come up with a better solution if the error happens again.

@CollinBeczak CollinBeczak deleted the challengeEditSetStateError branch January 15, 2024 18:08
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.

3 participants