Skip to content

Commit

Permalink
fix: label为布尔时,显示错误
Browse files Browse the repository at this point in the history
  • Loading branch information
hezhihang committed Sep 20, 2024
1 parent 55dec08 commit 567c992
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/amis-core/src/utils/labelToString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export function labelToString(label: any): string {
return label;
} else if (type === 'number') {
return `${label}`;
} else if (label === 'boolean') {
return String(label);
}

if (isPlainObject(label)) {
Expand Down

0 comments on commit 567c992

Please sign in to comment.