Skip to content

Commit

Permalink
Merge pull request #11383 from 2betop/chore-access-key
Browse files Browse the repository at this point in the history
chore: 修复访问 props key 的 warning 报错
  • Loading branch information
hsm-lv authored Dec 23, 2024
2 parents 513a855 + 972ff53 commit 385635d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/amis-core/src/SchemaRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ export class SchemaRenderer extends React.Component<SchemaRendererProps, any> {
rootStore,
statusStore,
render,
key: propKey,
...rest
} = this.props;

Expand Down Expand Up @@ -428,6 +427,7 @@ export class SchemaRenderer extends React.Component<SchemaRendererProps, any> {
data: defaultData,
value: defaultValue, // render时的value改放defaultValue中
activeKey: defaultActiveKey,
key: propKey,
...restSchema
} = schema;
return rest.invisible
Expand Down Expand Up @@ -493,6 +493,7 @@ export class SchemaRenderer extends React.Component<SchemaRendererProps, any> {
data: defaultData,
value: defaultValue,
activeKey: defaultActiveKey,
key: propKey,
...restSchema
} = schema;
const Component = renderer.component!;
Expand Down

0 comments on commit 385635d

Please sign in to comment.