Skip to content

Commit

Permalink
UIIN-2635: Create new instance success toast no longer shows the inst…
Browse files Browse the repository at this point in the history
…ance HRID (#2317)

(cherry picked from commit f0c4b11)
  • Loading branch information
mariia-aloshyna committed Nov 7, 2023
1 parent aa913ef commit 9573d7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Add immediate warning message when a local instance is shared. Refs UIIN-2617.
* Optimistic locking message not working for instances in non-consortial tenant. Fixes UIIN-2628.
* User receives an error when searching for an item in the Inventory app. Fixes UIIN-2634.
* Create new instance success toast no longer shows the instance HRID. Fixes UIIN-2635.

## [10.0.1](https://github.com/folio-org/ui-inventory/tree/v10.0.1) (2023-11-03)
[Full Changelog](https://github.com/folio-org/ui-inventory/compare/v10.0.0...v10.0.1)
Expand Down
4 changes: 2 additions & 2 deletions src/ViewInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -965,9 +965,9 @@ class ViewInstance extends React.Component {

<Callout ref={this.calloutRef} />

{this.state.afterCreate &&
{this.state.afterCreate && !isEmpty(instance) &&
<CalloutRenderer
message={<FormattedMessage id="ui-inventory.instance.successfullySaved" values={{ hrid: instance?.hrid }} />}
message={<FormattedMessage id="ui-inventory.instance.successfullySaved" values={{ hrid: instance.hrid }} />}
/>
}

Expand Down

0 comments on commit 9573d7b

Please sign in to comment.