Skip to content

Commit

Permalink
UIIN-3160: Decrease the amount of rerenders in ConsortialHoldings com…
Browse files Browse the repository at this point in the history
…ponent
  • Loading branch information
OleksandrHladchenko1 committed Jan 20, 2025
1 parent 5733bfb commit d6e4e54
Show file tree
Hide file tree
Showing 2 changed files with 2 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 @@
* Display `Shared` facet when user opens "Move holdings/items to another instance" modal. Refs UIIN-3198.
* ECS - Allow 'Move holdings/items to another instance' if instance is shared. Refs UIIN-3188.
* Fix '"location name" is undefined' error when trying to open instance details on ECS. Fixes UIIN-3196.
* Decrease the amount of rerenders in `ConsortialHoldings` component. Fixes UIIN-3196.

## [12.0.8](https://github.com/folio-org/ui-inventory/tree/v12.0.8) (2024-12-24)
[Full Changelog](https://github.com/folio-org/ui-inventory/compare/v12.0.7...v12.0.8)
Expand Down
3 changes: 1 addition & 2 deletions src/Instance/InstanceDetails/InstanceDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import React, {
import { useIntl, FormattedMessage } from 'react-intl';
import { useLocation } from 'react-router-dom';
import PropTypes from 'prop-types';
import { uniqueId } from 'lodash';

import {
AppIcon,
Expand Down Expand Up @@ -212,7 +211,7 @@ const InstanceDetails = forwardRef(({

{isConsortialHoldingsVisible && (
<ConsortialHoldings
key={uniqueId(instance?.id)}
key={instance?.id}
instance={instance}
prevInstanceId={prevInstanceId.current}
updatePrevInstanceId={updatePrevInstanceId}
Expand Down

0 comments on commit d6e4e54

Please sign in to comment.