Skip to content

Commit

Permalink
UIIN-2588: Edit instance success toast no longer shows the instance HRID
Browse files Browse the repository at this point in the history
  • Loading branch information
mariia-aloshyna committed Oct 17, 2023
1 parent e03476f commit e03afa8
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 @@ -4,6 +4,7 @@

* Instance 3rd pane: Adjust behavior when returning to instance from holdings/item full screen. Refs UIIN-2453.
* Consortial holdings accordion is not appearing after the sharing of Instance. Fixes UIIN-2629.
* Edit instance success toast no longer shows the instance HRID. Fixes UIIN-2588.

## [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/Instance/InstanceEdit/InstanceEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ const InstanceEdit = ({

const goBack = useGoBack(`/inventory/view/${instanceId}`);

const onSuccess = useCallback((updatedInstance) => {
const onSuccess = useCallback(() => {
const message = instance?.shared ? (
<FormattedMessage id="ui-inventory.instance.shared.successfulySaved" />
) : (
<FormattedMessage
id="ui-inventory.instance.successfullySaved"
values={{ hrid: updatedInstance.hrid }}
values={{ hrid: instance.hrid }}
/>
);

Expand Down

0 comments on commit e03afa8

Please sign in to comment.