fix(client): adjust the order of props
This commit is contained in:
parent
b398e65c9c
commit
a2f3e1904e
@ -22,11 +22,11 @@ export const RecursionComponent: React.FC<IRecursionComponentProps> = (props) =>
|
|||||||
return (
|
return (
|
||||||
<SchemaOptionsContext.Provider
|
<SchemaOptionsContext.Provider
|
||||||
value={{
|
value={{
|
||||||
scope: { ...props.scope, ...scope },
|
scope: { ...scope, ...props.scope },
|
||||||
components: { ...props.components, ...components },
|
components: { ...components, ...props.components },
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<SchemaExpressionScopeContext.Provider value={{ scope }}>
|
<SchemaExpressionScopeContext.Provider value={{ ...scope, ...props.scope }}>
|
||||||
<RecursionField {...props} />
|
<RecursionField {...props} />
|
||||||
</SchemaExpressionScopeContext.Provider>
|
</SchemaExpressionScopeContext.Provider>
|
||||||
</SchemaOptionsContext.Provider>
|
</SchemaOptionsContext.Provider>
|
||||||
|
Loading…
Reference in New Issue
Block a user