diff --git a/.changeset/old-windows-argue.md b/.changeset/old-windows-argue.md new file mode 100644 index 0000000000..f687d1b08c --- /dev/null +++ b/.changeset/old-windows-argue.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-import': minor +--- + +Slight change to the `PreparePullRequestFormProps`, because of an update to `react-hook-form`. diff --git a/plugins/catalog-import/api-report.md b/plugins/catalog-import/api-report.md index f507967d37..7397bfad1d 100644 --- a/plugins/catalog-import/api-report.md +++ b/plugins/catalog-import/api-report.md @@ -238,7 +238,7 @@ export type PreparePullRequestFormProps< UseFormReturn, 'formState' | 'register' | 'control' | 'setValue' > & { - values: UnpackNestedValue; + values: TFieldValues; }, ) => React_2.ReactNode; }; diff --git a/plugins/catalog-import/src/components/StepPrepareCreatePullRequest/PreparePullRequestForm.tsx b/plugins/catalog-import/src/components/StepPrepareCreatePullRequest/PreparePullRequestForm.tsx index 079ed57022..f0d84f13a4 100644 --- a/plugins/catalog-import/src/components/StepPrepareCreatePullRequest/PreparePullRequestForm.tsx +++ b/plugins/catalog-import/src/components/StepPrepareCreatePullRequest/PreparePullRequestForm.tsx @@ -18,7 +18,6 @@ import React from 'react'; import { FormProvider, SubmitHandler, - UnpackNestedValue, useForm, UseFormProps, UseFormReturn, @@ -39,7 +38,7 @@ export type PreparePullRequestFormProps< UseFormReturn, 'formState' | 'register' | 'control' | 'setValue' > & { - values: UnpackNestedValue; + values: TFieldValues; }, ) => React.ReactNode; };