decaporg / decaporg/decap-cms

TypeError: Cannot read property 'get' of undefined

Open
#4,480 6 comments 6 reactions 0 assignees View on GitHub
area: i18n type: bug
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

**Describe the bug**

I have enabled i18n for content authoring. I believe I should be able to save a post in the primary language without adding all the translations at the same time. When I try to save, I get no visible error. Instead, I get this error in the console.

**To Reproduce**

0. On a site configured as my config linked below
1. Go to `/admin`
2. Click on 'New Blog Post'
3. Complete the form for the English post
4. Try and click on 'Save'
5. See error in console

**Expected behavior**

0. On a site configured as my config linked below
1. Go to `/admin`
2. Click on 'New Blog Post'
3. Complete the form for the English post
4. Try and click on 'Save'
5. Saves only the translation you've created

**Screenshots**

![TypeError: Cannot read property 'get' of undefined](https://user-images.githubusercontent.com/956290/96470214-f517ce00-1225-11eb-8113-01a41d0d527a.png)

![Entire console output including TypeError](https://user-images.githubusercontent.com/956290/96470977-c0f0dd00-1226-11eb-9a5a-6906aeec427b.png)

**Applicable Versions:**

- Netlify CMS: 2.10.63
- Git provider: GitHub
- OS: Mac
- Browser version: Version 86.0.4240.80 (Official Build) (x86_64)

**CMS configuration**

https://github.com/Nexmo/deved-platform/blob/i18n-netlify-cms/static/admin/config.yml

**Additional context**

If I complete all the fields for all the languages, it then lets me save!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.