From d0cd3e847b671a3a215f29c7cf77fd9cafdad6d9 Mon Sep 17 00:00:00 2001 From: wadeking98 Date: Tue, 14 Mar 2023 15:25:17 -0700 Subject: [PATCH] code linting Signed-off-by: wadeking98 --- src/components/entity/EntityResult.vue | 14 +++-- .../entity/filter/EntityFilterFacetPanel.vue | 6 +- .../entity/filter/EntityFilterFacets.vue | 5 +- src/i18n/translate.ts | 62 ++++++++++--------- src/utils/entity.ts | 8 +-- 5 files changed, 55 insertions(+), 40 deletions(-) diff --git a/src/components/entity/EntityResult.vue b/src/components/entity/EntityResult.vue index 28078c7..c209263 100644 --- a/src/components/entity/EntityResult.vue +++ b/src/components/entity/EntityResult.vue @@ -815,12 +815,14 @@ export default class EntityResult extends Vue { return selectFirstAttrItem( { key: "type", value: "business_number" }, // find the latest business number - this.entityCredentials?.filter(cred => cred.latest)?.map((cred) => { - return { - type: cred.type, - text: cred.value, - }; - }) + this.entityCredentials + ?.filter((cred) => cred.latest) + ?.map((cred) => { + return { + type: cred.type, + text: cred.value, + }; + }) )?.text as string; } diff --git a/src/components/entity/filter/EntityFilterFacetPanel.vue b/src/components/entity/filter/EntityFilterFacetPanel.vue index 1a24cb1..ae4a008 100644 --- a/src/components/entity/filter/EntityFilterFacetPanel.vue +++ b/src/components/entity/filter/EntityFilterFacetPanel.vue @@ -4,7 +4,11 @@ {{ title }} - +