Skip to content

Commit

Permalink
Fixing bad rename of props to formContextProps
Browse files Browse the repository at this point in the history
  • Loading branch information
adolfo-pd committed Nov 22, 2024
1 parent 4fa8442 commit d08f1f8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function InternalComponentForm() {
color: "red",
}}>Error: {err.message}</p>}>
<Suspense fallback={<p>Loading form...</p>}>
<form {...getProps("componentForm", baseStyles, props)} onSubmit={_onSubmit}>
<form {...getProps("componentForm", baseStyles, formContextProps)} onSubmit={_onSubmit}>
{shownProps.map(([
prop,
idx,
Expand All @@ -108,8 +108,8 @@ export function InternalComponentForm() {
{dynamicPropsQueryIsFetching && <p>Loading dynamic props...</p>}
{(!hideOptionalProps && optionalProps.length)
? <div>
<div {...getProps("heading", baseHeadingStyles, props)}>Optional Props</div>
<div {...getProps("optionalFields", baseOptionalFieldsStyles, props)}>
<div {...getProps("heading", baseHeadingStyles, formContextProps)}>Optional Props</div>
<div {...getProps("optionalFields", baseOptionalFieldsStyles, formContextProps)}>
{optionalProps.map(([
prop,
enabled,
Expand Down

0 comments on commit d08f1f8

Please sign in to comment.