From d6bebcf17510224cc88daacd05592bed667a971f Mon Sep 17 00:00:00 2001 From: Andres Date: Fri, 29 Mar 2024 10:22:59 -0700 Subject: [PATCH] Make saveItem work with immutable data --- src/shell/store/content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell/store/content.js b/src/shell/store/content.js index 0fd9e330dc..26b3fac22d 100644 --- a/src/shell/store/content.js +++ b/src/shell/store/content.js @@ -382,7 +382,7 @@ export function fetchItems(modelZUID, options = {}) { export function saveItem(itemZUID, action = "") { return (dispatch, getState) => { const state = getState(); - const item = state.content[itemZUID]; + const item = cloneDeep(state.content[itemZUID]); const fields = Object.keys(state.fields) .filter( (fieldZUID) =>