mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-01-30 17:09:35 +08:00
fix: fix the CategoryWidget
errors
This commit is contained in:
parent
1bedbfdf02
commit
1850625d98
@ -82,13 +82,13 @@ export const CategoryWidget: React.FC<WidgetProps> = props => {
|
||||
if (typeof propertySpec === 'boolean') {
|
||||
return null;
|
||||
}
|
||||
return shouldRender(spec.conditions || [], value) ? (
|
||||
return shouldRender(propertySpec.conditions || [], value) ? (
|
||||
<SpecWidget
|
||||
key={name}
|
||||
component={component}
|
||||
spec={{
|
||||
...spec,
|
||||
title: spec.title || name,
|
||||
...propertySpec,
|
||||
title: propertySpec.title || name,
|
||||
}}
|
||||
value={value?.[name!]}
|
||||
path={path.concat(name!)}
|
||||
|
Loading…
Reference in New Issue
Block a user