fix(lint): fix yarn lint breakage from #11498 (#11553)

This commit is contained in:
Shirshanka Das 2024-10-07 16:32:11 -07:00 committed by GitHub
parent 1be3dfdd0a
commit fb73e925e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) => {