Skip to content

Commit

Permalink
GeneratedResourceForm - default values fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikMatiasko committed May 26, 2024
1 parent 739975c commit 75405fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const sortProperties = (properties: PropertiesType) =>
)
: []

export const getHref = (parentHref: string, href: string) => `${parentHref !== '' && !parentHref.startsWith('/') ? parentHref + '/' : parentHref}${href}`
export const getHref = (parentHref: string, href: string) => `${parentHref !== '' && !parentHref.endsWith('/') ? parentHref + '/' : parentHref}${href}`

const FormGenerator: FC<Props> = (props) => {
const { dataTestId, href: topHref, properties, resetFormKey, schema, values, onChange, setFormError } = props
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ const GeneratedResourceForm: FC<Props> = (props) => {
}
}, [i18n, properties, props])

console.log(props)

return (
<div className={className} data-test-id={dataTestId} id={id}>
<Loadable condition={!!schema.current && !parsing}>
Expand Down

0 comments on commit 75405fb

Please sign in to comment.