Skip to content

Commit

Permalink
Fix/Make saveItem work with immutable data to allow saving of previou…
Browse files Browse the repository at this point in the history
…s versions (#2651)
  • Loading branch information
shrunyan authored Mar 29, 2024
2 parents e286266 + d6bebcf commit 6f6e0dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shell/store/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down

0 comments on commit 6f6e0dc

Please sign in to comment.