mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-02-23 17:49:49 +08:00
fix: keep the key unique to avoid sharing state among components
This commit is contained in:
parent
569f708a8d
commit
edf99e579b
@ -38,7 +38,7 @@ export const ObjectField: React.FC<WidgetProps<ObjectFieldType>> = props => {
|
||||
return shouldRender(subSpec.conditions || [], value) ? (
|
||||
<SpecWidget
|
||||
component={component}
|
||||
key={name}
|
||||
key={name + component.id}
|
||||
spec={mergeWidgetOptionsIntoSpec<'core/v1/spec'>(
|
||||
{
|
||||
...subSpec,
|
||||
|
Loading…
Reference in New Issue
Block a user