webiny-js
webiny-js copied to clipboard
Headless CMS - creating a new environment results in a harmless error
I've created a new environment, which resulted in this error:

However, the environment is usable and everything seems alright.
This is:
- Bug
Specifications
- version: feat/headless-cms branch
- OS: Windows 10
- Browser: Chrome
Expected Behavior
The error shouldn't appear.
Actual Behavior
That weird error appears when creating a new environment. Perhaps it tries updating the list of envs to the left of the screenshot.
Steps to Reproduce the Problem
- Create a new environment with the default "Production" env as its base environment
- Click on "Save environment" and you'll get this shiny error
Possible Solution
I think it's just a slight coding error around context.cms.getEnvironment somewhere in the code, ie a malformed graphql call. Maybe this can be fixed.