Skip to content

Commit 585a18c

Browse files
Fixed unexpected fallback_locale behavior during direct locale updates.
1 parent 9f211a8 commit 585a18c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/entity.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,12 @@ export const update = (http, type, params = {}) => {
155155
delete json.deleted_at
156156
delete json.updated_at
157157
delete json.updated_by
158-
delete json.updated_at
158+
159+
// If param has data for this entity type, merge it with the json object
160+
if (param && param[type]) {
161+
Object.assign(json, param[type])
162+
}
163+
159164
if (type) {
160165
updateData[type] = json
161166
if (type === 'entry') updateData[type] = cleanAssets(updateData[type])

0 commit comments

Comments
 (0)