Skip to content

Commit 2020b9a

Browse files
Fixed unexpected fallback_locale behavior during direct locale updates.
1 parent c0ce1a5 commit 2020b9a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

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)