diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bdfb9eaba..2f0dc1f0ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2006,6 +2006,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added - Quick Files +[24.09.1]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/24.09.1 [24.09.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/24.09.0 [24.08.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/24.08.0 [24.07.1]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/24.07.1 diff --git a/app/institutions/dashboard/-components/object-list/contributors-field/component.ts b/app/institutions/dashboard/-components/object-list/contributors-field/component.ts index d492316295..1c0a69f484 100644 --- a/app/institutions/dashboard/-components/object-list/contributors-field/component.ts +++ b/app/institutions/dashboard/-components/object-list/contributors-field/component.ts @@ -64,9 +64,14 @@ function hasInstitutionAffiliation(contributors: any[], attribution: any, instit } return attributedContributor.affiliation.some( - (affiliation: any) => affiliation.identifier.some( - (affiliationIdentifier: any) => institutionIris.includes(affiliationIdentifier['@value']), - ), + (affiliation: any) => { + if (affiliation.identifier) { + return affiliation.identifier.some( + (affiliationIdentifier: any) => institutionIris.includes(affiliationIdentifier['@value']), + ); + } + return institutionIris.includes(affiliation['@id']); + }, ); } diff --git a/package.json b/package.json index f1686da40d..e8e854e8b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ember-osf-web", - "version": "24.09.0", + "version": "24.09.1", "private": true, "description": "Ember front-end for the Open Science Framework", "homepage": "https://github.com/CenterForOpenScience/ember-osf-web#readme",