@@ -26,7 +26,7 @@ export class ProjectOverviewMapper {
2626 year : response . attributes . node_license . year ,
2727 }
2828 : undefined ,
29- license : response . embeds . license ?. data ?. attributes as LicenseModel ,
29+ license : response . embeds ? .license ?. data ?. attributes as LicenseModel ,
3030 doi : response . attributes . doi ,
3131 publicationDoi : response . attributes . publication_doi ,
3232 analyticsKey : response . attributes . analytics_key ,
@@ -37,16 +37,16 @@ export class ProjectOverviewMapper {
3737 wikiEnabled : response . attributes . wiki_enabled ,
3838 customCitation : response . attributes . custom_citation ,
3939 contributors : ContributorsMapper . getContributors ( response ?. embeds ?. bibliographic_contributors ?. data ) ,
40- affiliatedInstitutions : response . embeds . affiliated_institutions
40+ affiliatedInstitutions : response . embeds ? .affiliated_institutions
4141 ? InstitutionsMapper . fromInstitutionsResponse ( response . embeds . affiliated_institutions )
4242 : [ ] ,
43- identifiers : response . embeds . identifiers ?. data . map ( ( identifier ) => ( {
43+ identifiers : response . embeds ? .identifiers ?. data . map ( ( identifier ) => ( {
4444 id : identifier . id ,
4545 type : identifier . type ,
4646 value : identifier . attributes . value ,
4747 category : identifier . attributes . category ,
4848 } ) ) ,
49- ...( response . embeds . storage ?. data &&
49+ ...( response . embeds ? .storage ?. data &&
5050 ! response . embeds . storage ?. errors && {
5151 storage : {
5252 id : response . embeds . storage . data . id ,
@@ -55,7 +55,7 @@ export class ProjectOverviewMapper {
5555 storageLimitStatus : response . embeds . storage . data . attributes . storage_limit_status ,
5656 } ,
5757 } ) ,
58- supplements : response . embeds . preprints ?. data . map ( ( preprint ) => ( {
58+ supplements : response . embeds ? .preprints ?. data . map ( ( preprint ) => ( {
5959 id : preprint . id ,
6060 type : preprint . type ,
6161 title : preprint . attributes . title ,
0 commit comments