diff --git a/packages/amis-core/src/utils/labelToString.ts b/packages/amis-core/src/utils/labelToString.ts index 40061b7b2b8..f9442a18c35 100644 --- a/packages/amis-core/src/utils/labelToString.ts +++ b/packages/amis-core/src/utils/labelToString.ts @@ -2,6 +2,10 @@ import isPlainObject from 'lodash/isPlainObject'; export function labelToString(label: any): string { const type = typeof label; + if (type === 'undefined' || label === null) { + // render placeholder + return '-'; + } if (type === 'string') { return label; } else if (type === 'number') {