Skip to content

Commit

Permalink
Fix some errors (#2303)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariia-aloshyna authored Oct 12, 2023
1 parent aa80896 commit c6ad5e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Instance/InstanceDetails/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ export const getAccordionState = (instance = {}, accordions = {}) => {
return ({
[accordions.administrative]: !areAllFieldsEmpty(values(instanceData)),
[accordions.title]: !areAllFieldsEmpty(values(titleData)),
[accordions.identifiers]: !areAllFieldsEmpty([instance.identifiers ?? []]),
[accordions.contributors]: !areAllFieldsEmpty([instance.contributors ?? []]),
[accordions.identifiers]: !areAllFieldsEmpty([instance?.identifiers ?? []]),
[accordions.contributors]: !areAllFieldsEmpty([instance?.contributors ?? []]),
[accordions.descriptiveData]: !areAllFieldsEmpty(values(descriptiveData)),
[accordions.notes]: !areAllFieldsEmpty([instance?.notes ?? []]),
[accordions.electronicAccess]: !areAllFieldsEmpty([instance.electronicAccess ?? []]),
[accordions.subjects]: !areAllFieldsEmpty([instance.subjects ?? []]),
[accordions.classifications]: !areAllFieldsEmpty([instance.classifications ?? []]),
[accordions.electronicAccess]: !areAllFieldsEmpty([instance?.electronicAccess ?? []]),
[accordions.subjects]: !areAllFieldsEmpty([instance?.subjects ?? []]),
[accordions.classifications]: !areAllFieldsEmpty([instance?.classifications ?? []]),
[accordions.relationship]: !areAllFieldsEmpty(values(instanceRelationship)),
});
};

0 comments on commit c6ad5e1

Please sign in to comment.