Skip to content

Commit

Permalink
Release 9.0.5 (#1282)
Browse files Browse the repository at this point in the history
* fix: Cannot save an edited an agreement with no agreement lines following ERM-3076 fix in Orchid

Null safety on `.map`

ERM-3113

* chore: Release 9.0.5

ERM-3114
  • Loading branch information
EthanFreestone committed Nov 20, 2023
1 parent 52baca3 commit d6c71c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change history for ui-agreements

## 9.0.5 2023-11-20
* ERM-3113 Cannot save an edited an agreement with no agreement lines following ERM-3076 fix in Orchid

## 9.0.4 2023-11-01
* ERM-3076 Agreements with internal (local KB) agreement lines do not save correctly

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@folio/agreements",
"version": "9.0.4",
"version": "9.0.5",
"description": "ERM agreement functionality for Stripes",
"main": "src/index.js",
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/AgreementEditRoute/AgreementEditRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ const AgreementEditRoute = ({
...values,
// For OrchidCSP only concern ourselves with removing owner feedback loops.
// Performance changes are in place from Poppy
items: values.items.map(i => ({ ...i, owner: i.owner ? { id: i.owner.id } : null }))
items: values.items?.map(i => ({ ...i, owner: i.owner ? { id: i.owner.id } : null }))
});
};

Expand Down

0 comments on commit d6c71c5

Please sign in to comment.