Merge pull request #262 from Yamboy1/patch-2

Remove assumption that a publish has a language
This commit is contained in:
Sean Yesmunt 2020-01-21 11:44:59 -05:00 committed by GitHub
commit 63373519e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,7 @@ export const selectPublishFormValues = createSelector(
let actualLanguage;
// Sets default if editing a claim with a set language
if (!language && isStillEditing && languages[0]) {
if (!language && isStillEditing && languages && languages[0]) {
actualLanguage = languages[0];
} else {
actualLanguage = language || 'en';