From c00403a24ceb2593dd054223bd479e8930ddb1bc Mon Sep 17 00:00:00 2001 From: argirok Date: Fri, 10 May 2024 11:33:42 +0300 Subject: [PATCH] [develop | DONE | FIXED] linking initialize properly claims properties when there are not pass as input --- claims/directLinking/directLinking.component.ts | 2 +- claims/linking/linkingGeneric.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/claims/directLinking/directLinking.component.ts b/claims/directLinking/directLinking.component.ts index b74beb83..f84b0e59 100644 --- a/claims/directLinking/directLinking.component.ts +++ b/claims/directLinking/directLinking.component.ts @@ -38,7 +38,7 @@ export class DirectLinkingComponent { @Input() communityId: string = null; localStoragePrefix: string = ""; @Input() organizationClaim: boolean = false; - @Input() claimsProperties:ClaimsProperties; + @Input() claimsProperties:ClaimsProperties = new ClaimsProperties(); constructor(private _router: Router, private route: ActivatedRoute,private entitySearch:EntitiesSearchService, private _searchResearchResultsService: SearchResearchResultsService) {} subscriptions = []; diff --git a/claims/linking/linkingGeneric.component.ts b/claims/linking/linkingGeneric.component.ts index a7a18c6d..b5c0a683 100644 --- a/claims/linking/linkingGeneric.component.ts +++ b/claims/linking/linkingGeneric.component.ts @@ -50,7 +50,7 @@ export class LinkingGenericComponent { public pageContents = null; @Input() breadcrumbs: Breadcrumb[] = []; public routerHelper: RouterHelper = new RouterHelper(); - @Input() claimsProperties:ClaimsProperties; + @Input() claimsProperties:ClaimsProperties = new ClaimsProperties(); constructor (private _router: Router, private route: ActivatedRoute, private entitySearch:EntitiesSearchService, private _meta: Meta, private _title: Title, private _piwikService:PiwikService, private seoService: SEOService, private helper: HelperService, private cdr: ChangeDetectorRef,