Skip to content

Commit

Permalink
Update creators doesn't trigger the 'Unsaved change'
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminCharmes committed Nov 7, 2024
1 parent d228368 commit 1a6307a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webapp/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,11 @@ export default createStore({
//requires the following fields in payload:
// item_id, item_data
Object.assign(state.all_item_data[payload.item_id], payload.item_data);
state.saved_status_items[payload.item_id] = false;
if (payload.item_data.creators && state.saved_status_items[payload.item_id] == true) {
state.saved_status_items[payload.item_id] = true;
} else {
state.saved_status_items[payload.item_id] = false;
}
},
updateCollectionData(state, payload) {
//requires the following fields in payload:
Expand Down

0 comments on commit 1a6307a

Please sign in to comment.