From dc738d222fb766b6d93532b7c7c93646c0b26a1b Mon Sep 17 00:00:00 2001 From: Mariia Aloshyna <55138456+mariia-aloshyna@users.noreply.github.com> Date: Wed, 18 Oct 2023 16:35:23 +0300 Subject: [PATCH] UIIN-2588: Edit instance success toast no longer shows the instance HRID (#2313) --- CHANGELOG.md | 1 + src/Instance/InstanceEdit/InstanceEdit.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a75cbd96d..5d1177cb1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,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. * Reset CheckboxFacet state.more when user resets search form and fewer facet options are loaded. Fixes UIIN-2531. +* 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) diff --git a/src/Instance/InstanceEdit/InstanceEdit.js b/src/Instance/InstanceEdit/InstanceEdit.js index f0ecda89b..ed10ba12c 100644 --- a/src/Instance/InstanceEdit/InstanceEdit.js +++ b/src/Instance/InstanceEdit/InstanceEdit.js @@ -54,13 +54,13 @@ const InstanceEdit = ({ const goBack = useGoBack(`/inventory/view/${instanceId}`); - const onSuccess = useCallback((updatedInstance) => { + const onSuccess = useCallback(() => { const message = instance?.shared ? ( ) : ( );