codeamp / panel

CodeAmp Web Application. Built with React.js, GraphQL and Material-UI.
12 stars 7 forks source link

Cannot read property 'environments' of undefined after creating new project #333

Closed daniel-bryant closed 5 years ago

daniel-bryant commented 5 years ago

Describe the bug Shown a blank page after creating a new project. Viewing the console reveals a Javascript error Cannot read property 'environments' of undefined.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://codeamp.checkrhq.net/create
  2. Fill in the form and click 'Create'
  3. See blank page with console error

Expected behavior I should be directed to the project page without errors.

Screenshots

Immediately after creation

Screen Shot 2019-04-23 at 2 04 00 PM

After refreshing the page

Screen Shot 2019-04-23 at 2 12 51 PM

Desktop (please complete the following information):

Additional context Might be related to https://github.com/codeamp/panel/issues/283

aballman commented 5 years ago

Should be fixed in https://github.com/codeamp/panel/pull/347