Don't reset content language on edit
This commit is contained in:
parent
609f13991f
commit
85ad697e0a
2 changed files with 5 additions and 3 deletions
5
dist/bundle.es.js
vendored
5
dist/bundle.es.js
vendored
|
@ -5414,8 +5414,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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue