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)
  • Loading branch information
mariia-aloshyna authored Oct 23, 2023
1 parent 4054062 commit f0c4b11
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 @@ -16,6 +16,7 @@
* Remove error message after switch from Instance Edit screen to another app. Fixes UIIN-2600.
* Enable/disable consortial holdings/item actions based on User permissions. Refs UIIN-2452.
* 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.0](https://github.com/folio-org/ui-inventory/tree/v10.0.0) (2023-10-13)
[Full Changelog](https://github.com/folio-org/ui-inventory/compare/v9.4.12...v10.0.0)
Expand Down
4 changes: 2 additions & 2 deletions src/ViewInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -960,9 +960,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 f0c4b11

Please sign in to comment.