Skip to content

Commit

Permalink
Merge pull request #357 from superdesk/content-lists-superdesk
Browse files Browse the repository at this point in the history
Content lists superdesk bugfix
  • Loading branch information
IvanJelicSF authored Nov 8, 2024
2 parents 8f0ae8d + 36d91a6 commit ea6a2df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/components/ContentLists/Manual/Manual.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,13 @@ class Manual extends React.Component {
let changesRecord = [...this.state.changesRecord];
changesRecord = changesRecord.map((change) => {
if (change.content_id === item_id) {
let index = list.items.findIndex((item) => {
let itemId = item.content ? item.content.id : item.id;
return itemId === item_id;
});

change.content_id = res.id;
list.items[index].id = res.id;
}
return change;
});
Expand Down

0 comments on commit ea6a2df

Please sign in to comment.