Merge branch 'fix/windlike-patch' of https://github.com/webzard-io/sunmao-ui into fix/windlike-patch

This commit is contained in:
MrWindlike 2022-04-11 10:26:04 +08:00
commit 62a7932a37

View File

@ -45,7 +45,7 @@ export const ArrayTable: React.FC<Props> = props => {
<Th width="24px" />
{keys.map((key: string) => {
const propertySpec = itemSpec.properties?.[key];
const title = isJSONSchema(propertySpec) ? propertySpec.title : key;
const title = isJSONSchema(propertySpec) ? (propertySpec.title || key) : key;
return <Th key={key}>{title}</Th>;
})}