Skip to content

Commit

Permalink
fix(lint): fix yarn lint breakage from datahub-project#11498 (datahub…
Browse files Browse the repository at this point in the history
  • Loading branch information
shirshanka authored Oct 7, 2024
1 parent 1be3dfd commit fb73e92
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { EditableSchemaFieldInfo, SchemaFieldEntity } from '../../../../../../../types.generated';
import {
EditableSchemaFieldInfo,
SchemaFieldEntity,
DocumentationAssociation,
} from '../../../../../../../types.generated';

interface Props {
schemaFieldEntity?: SchemaFieldEntity | null;
Expand All @@ -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) => {
Expand Down

0 comments on commit fb73e92

Please sign in to comment.