Skip to content

Commit

Permalink
fix(field-render): fix date editing error #WIK-17072 (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
pubuzhixing8 authored Dec 27, 2024
1 parent d57b979 commit 381235a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/grid/src/services/event.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 381235a

Please sign in to comment.