Merge pull request #262 from Yamboy1/patch-2
Remove assumption that a publish has a language
This commit is contained in:
commit
63373519e8
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ export const selectPublishFormValues = createSelector(
|
||||||
|
|
||||||
let actualLanguage;
|
let actualLanguage;
|
||||||
// Sets default if editing a claim with a set language
|
// Sets default if editing a claim with a set language
|
||||||
if (!language && isStillEditing && languages[0]) {
|
if (!language && isStillEditing && languages && languages[0]) {
|
||||||
actualLanguage = languages[0];
|
actualLanguage = languages[0];
|
||||||
} else {
|
} else {
|
||||||
actualLanguage = language || 'en';
|
actualLanguage = language || 'en';
|
||||||
|
|
Loading…
Reference in a new issue