Skip to content

Commit

Permalink
Release v7.1.3 (#1574)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariia-aloshyna committed Apr 23, 2024
1 parent f9879d7 commit 8fbf6a9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change history for ui-data-import

## [7.1.3](https://github.com/folio-org/ui-data-import/tree/v7.1.3) (2024-04-22)

### Bugs fixed:
* "addedRelations" is not clearing after unlinking the update profile. (UIDATIMP-1603)

## [7.1.2](https://github.com/folio-org/ui-data-import/tree/v7.1.2) (2024-04-19)

### Bugs fixed:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@folio/data-import",
"version": "7.1.2",
"version": "7.1.3",
"description": "Data Import manager",
"main": "src/index.js",
"repository": "folio-org/ui-data-import",
Expand Down
4 changes: 3 additions & 1 deletion src/components/ProfileTree/ProfileLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ export const ProfileLabel = memo(({
profileWrapperId: detailWrapperId = null,
} = recordData;
const {
id,
contentType: parentType,
profileId: parentId,
profileId,
profileWrapperId: masterWrapperId = null,
} = parentRecordData;
const parentId = profileId || id;

const labelMode = record ? 'static' : 'editable';
const entityKey = `${camelCase(recordType)}s`;
Expand Down
4 changes: 2 additions & 2 deletions src/components/ProfileTree/ProfileTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ export const ProfileTree = memo(({
}));

const findRelIndex = (relations, masterId, line, reactTo) => {
return relations.findIndex(rel => rel.masterProfileId === masterId
return relations.findIndex(rel => (rel.masterProfileId === masterId
&& rel.detailProfileId === line.content.id
&& rel.reactTo === reactTo);
&& (rel.reactTo !== undefined ? rel.reactTo === reactTo : reactTo === null)));
};

const composeRelations = ({
Expand Down

0 comments on commit 8fbf6a9

Please sign in to comment.