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

Cannot assign coach in production mode #29

Open
matthewhall79 opened this issue Dec 17, 2020 · 1 comment
Open

Cannot assign coach in production mode #29

matthewhall79 opened this issue Dec 17, 2020 · 1 comment

Comments

@matthewhall79
Copy link
Collaborator

  1. Run the server in production mode (on the laptop and still on port 8000, but using FLASK_ENV=production flask env and without running yarn start).
  2. Navigate to http://127.0.0.1:8000, fill out the 'assign member' form and click 'submit' then 'confirm'.

This directs to a blank page rather than showing the results of the assignment.

@matthewhall79
Copy link
Collaborator Author

The problem appears to be in rendering the AssignLoader, before attempting to make the coach assignment request to the server. Commenting out this setState call in handleSubmitConfirm avoids the problem Assign.js:65.

this.setState({ display: displays.LOADING }, () => {

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