From 6e02e4da021328eaff74534f2b058977cb634dde Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Thu, 2 Jun 2022 12:21:54 -0700 Subject: [PATCH] fixing func def. --- webapp/frontend/src/app/modules/detail/detail.component.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/webapp/frontend/src/app/modules/detail/detail.component.ts b/webapp/frontend/src/app/modules/detail/detail.component.ts index 6e7a47b..020ef4a 100644 --- a/webapp/frontend/src/app/modules/detail/detail.component.ts +++ b/webapp/frontend/src/app/modules/detail/detail.component.ts @@ -121,7 +121,7 @@ export class DetailComponent implements OnInit, AfterViewInit, OnDestroy { // ----------------------------------------------------------------------------------------------------- // @ Private methods // ----------------------------------------------------------------------------------------------------- - getAttributeStatusName(attributeStatus: number){ + getAttributeStatusName(attributeStatus: number): string { // tslint:disable:no-bitwise // from Constants.go @@ -138,18 +138,17 @@ export class DetailComponent implements OnInit, AfterViewInit, OnDestroy { } else if ((attributeStatus & 2) !== 0){ return 'warn' } - return + return '' // tslint:enable:no-bitwise } - getAttributeName(attribute_data){ + getAttributeName(attribute_data): string { let attribute_metadata = this.metadata[attribute_data.attribute_id] if(!attribute_metadata){ return 'Unknown Attribute Name' } else { return attribute_metadata.display_name } - return } getAttributeDescription(attribute_data){ let attribute_metadata = this.metadata[attribute_data.attribute_id]