Skip to content

Commit 4d43a1e

Browse files
author
yaroslav8765
committed
fix: update field label retrieval in RichEditorPlugin
1 parent 18ccf24 commit 4d43a1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ export default class RichEditorPlugin extends AdminForthPlugin {
300300
currentVal = currentVal.slice(-promptLimit);
301301
}
302302

303+
const fieldLabel = this.resourceConfig?.columns.find(c => c.name === this.options.htmlFieldName)?.label || this.options.htmlFieldName;
303304
const resLabel = this.resourceConfig!.label;
304-
const fieldLabel = this.options?.htmlFieldName;
305305

306306
let content;
307307

0 commit comments

Comments
 (0)