From fb73e925e7114a9ba646b8c1c8441083887f1892 Mon Sep 17 00:00:00 2001 From: Shirshanka Das Date: Mon, 7 Oct 2024 16:32:11 -0700 Subject: [PATCH] fix(lint): fix yarn lint breakage from #11498 (#11553) --- .../Dataset/Schema/utils/getFieldDescriptionDetails.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/datahub-web-react/src/app/entity/shared/tabs/Dataset/Schema/utils/getFieldDescriptionDetails.ts b/datahub-web-react/src/app/entity/shared/tabs/Dataset/Schema/utils/getFieldDescriptionDetails.ts index 9e01b393da60cc..c603372de39617 100644 --- a/datahub-web-react/src/app/entity/shared/tabs/Dataset/Schema/utils/getFieldDescriptionDetails.ts +++ b/datahub-web-react/src/app/entity/shared/tabs/Dataset/Schema/utils/getFieldDescriptionDetails.ts @@ -1,4 +1,8 @@ -import { EditableSchemaFieldInfo, SchemaFieldEntity } from '../../../../../../../types.generated'; +import { + EditableSchemaFieldInfo, + SchemaFieldEntity, + DocumentationAssociation, +} from '../../../../../../../types.generated'; interface Props { schemaFieldEntity?: SchemaFieldEntity | null; @@ -8,7 +12,7 @@ interface Props { export function getFieldDescriptionDetails({ schemaFieldEntity, editableFieldInfo, defaultDescription }: Props) { const documentations = schemaFieldEntity?.documentation?.documentations; - let latestDocumentation: typeof documentations[0] | undefined; + let latestDocumentation: DocumentationAssociation | undefined; if (documentations && documentations.length > 0) { latestDocumentation = documentations.reduce((latest, current) => {