fix(client): adjust the order of props

This commit is contained in:
chenos 2022-01-24 14:03:18 +08:00
parent b398e65c9c
commit a2f3e1904e

View File

@ -22,11 +22,11 @@ export const RecursionComponent: React.FC<IRecursionComponentProps> = (props) =>
return (
<SchemaOptionsContext.Provider
value={{
scope: { ...props.scope, ...scope },
components: { ...props.components, ...components },
scope: { ...scope, ...props.scope },
components: { ...components, ...props.components },
}}
>
<SchemaExpressionScopeContext.Provider value={{ scope }}>
<SchemaExpressionScopeContext.Provider value={{ ...scope, ...props.scope }}>
<RecursionField {...props} />
</SchemaExpressionScopeContext.Provider>
</SchemaOptionsContext.Provider>