Merge pull request #414 from saltrafael/master

Don't reset content language on edit
This commit is contained in:
Thomas Zarebczan 2021-06-11 11:45:35 -04:00 committed by GitHub
commit 166c3b2832
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

5
dist/bundle.es.js vendored
View file

@ -5428,8 +5428,9 @@ const selectIsStillEditing = reselect.createSelector(selectState$4, publishState
});
const selectPublishFormValues = reselect.createSelector(selectState$4, state => state.settings, selectIsStillEditing, (publishState, settingsState, isStillEditing) => {
const { pendingPublish, language } = publishState,
formValues = _objectWithoutProperties$2(publishState, ['pendingPublish', 'language']);
const { languages } = publishState,
formValues = _objectWithoutProperties$2(publishState, ['languages']);
const language = languages[0];
const { clientSettings } = settingsState;
const { language: languageSet } = clientSettings;

View file

@ -43,7 +43,8 @@ export const selectPublishFormValues = createSelector(
state => state.settings,
selectIsStillEditing,
(publishState, settingsState, isStillEditing) => {
const { pendingPublish, language, ...formValues } = publishState;
const { languages, ...formValues } = publishState;
const language = languages[0];
const { clientSettings } = settingsState;
const { language: languageSet } = clientSettings;