diff --git a/packages/amis-core/src/utils/labelToString.ts b/packages/amis-core/src/utils/labelToString.ts index e0af3d2e4..40061b7b2 100644 --- a/packages/amis-core/src/utils/labelToString.ts +++ b/packages/amis-core/src/utils/labelToString.ts @@ -6,7 +6,7 @@ export function labelToString(label: any): string { return label; } else if (type === 'number') { return `${label}`; - } else if (label === 'boolean') { + } else if (type === 'boolean') { return String(label); }