webiny-js icon indicating copy to clipboard operation
webiny-js copied to clipboard

Headless CMS - creating a new environment results in a harmless error

Open Andrei199991 opened this issue 6 years ago • 0 comments

I've created a new environment, which resulted in this error:

image

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

  1. Create a new environment with the default "Production" env as its base environment
  2. 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.

Andrei199991 avatar May 20 '20 16:05 Andrei199991