Skip to content

Commit

Permalink
fix(orchestrator): pass also initial form data to custom decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
batzionb committed Nov 25, 2024
1 parent 1e6e274 commit 7afe8d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/orchestrator-form-api/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface OrchestratorFormApi {
getFormDecorator(
schema: JSONSchema7,
uiSchema: UiSchema<JsonObject, JSONSchema7>,
initialFormData?: JsonObject,
initialFormData?: JsonObject
): OrchestratorFormDecorator;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ const OrchestratorFormWrapper = ({
return formDecorator(FormComponent);
}, [schema, formApi, uiSchema, formData]);
return (
<WrapperFormPropsContext.Provider
value={{ schema, uiSchema, formData, ...props }}
>
<WrapperFormPropsContext.Provider value={{ schema, uiSchema, formData, ...props }}>
<NewComponent />
</WrapperFormPropsContext.Provider>
);
Expand Down

0 comments on commit 7afe8d7

Please sign in to comment.