chore: 修复 status 组件 key 报错 (#3156)

This commit is contained in:
吴多益 2021-12-06 22:21:54 +08:00 committed by GitHub
parent eac8e7e533
commit 9bf6f948be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,9 @@ export class StatusField extends React.Component<StatusProps, object> {
} = this.props;
let value = getPropValue(this.props);
let viewValue: React.ReactNode = (
<span className="text-muted">{placeholder}</span>
<span className="text-muted" key="status-value">
{placeholder}
</span>
);
let wrapClassName: string = '';