From 38bc8ba3e0cb1545c77ec7c8e67cab5b4dc8ad5d Mon Sep 17 00:00:00 2001 From: pubuzhixing8 Date: Fri, 27 Dec 2024 10:57:38 +0800 Subject: [PATCH] fix(field-render): fix date editing error #WIK-17072 --- packages/grid/src/services/event.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/grid/src/services/event.service.ts b/packages/grid/src/services/event.service.ts index 46de7e4d..2bc85cee 100644 --- a/packages/grid/src/services/event.service.ts +++ b/packages/grid/src/services/event.service.ts @@ -71,8 +71,9 @@ export class AITableGridEventService { } private getEditorComponent(type: AITableFieldType) { - if (this.aiFieldRenderers && this.aiFieldRenderers[type]) { - return this.aiFieldRenderers[type]!.editor; + const filedRenderSchema = this.aiFieldRenderers && this.aiFieldRenderers[type]; + if (filedRenderSchema && filedRenderSchema.editor) { + return filedRenderSchema.editor; } return GRID_CELL_EDITOR_MAP[type]; }