From 381235a65d47b6500cc043a19dccf455e3956402 Mon Sep 17 00:00:00 2001 From: pubuzhixing8 Date: Fri, 27 Dec 2024 11:16:12 +0800 Subject: [PATCH] fix(field-render): fix date editing error #WIK-17072 (#217) --- 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]; }