Update dependency react-hook-form to v7.50.0 (#81796)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
renovate[bot] 2024-02-02 19:30:27 +02:00 committed by GitHub
parent 9b4b0eed99
commit d65df0191b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@ export function ChannelOptions<R extends ChannelValues>({
// pathPrefix = items.index.
const paths = pathPrefix.split('.');
const selectedOptionValue =
paths.length >= 2 ? currentFormValues.items[Number(paths[1])].settings[option.showWhen.field] : undefined;
paths.length >= 2 ? currentFormValues.items?.[Number(paths[1])].settings?.[option.showWhen.field] : undefined;
if (option.showWhen.field && selectedOptionValue !== option.showWhen.is) {
return null;

View File

@ -117,7 +117,7 @@ export function SaveDashboardAsForm({ dashboard, drawer, changeInfo }: Props) {
<FolderPicker
onChange={(uid: string | undefined, title: string | undefined) => setValue('folder', { uid, title })}
// Old folder picker fields
value={formValues.folder.uid}
value={formValues.folder?.uid}
initialTitle={defaultValues!.folder!.title}
dashboardId={changedSaveModel.id ?? undefined}
enableCreateNew

View File

@ -25615,11 +25615,11 @@ __metadata:
linkType: hard
"react-hook-form@npm:^7.49.2":
version: 7.49.3
resolution: "react-hook-form@npm:7.49.3"
version: 7.50.0
resolution: "react-hook-form@npm:7.50.0"
peerDependencies:
react: ^16.8.0 || ^17 || ^18
checksum: 10/ccd35d73f26b56c2933312c5d445552aab8c20a02ab07360808f039c9daf37a046a0afa2c2c56fac0a16b1963ae3e4ebce37136d14388002d00d6c5483e3fdb7
checksum: 10/3b85cc179053af72a2734f2e77767de8f9b3ecbefeee282b73e81141c4b7bb97308ec00da61fdc25a28299a2defb74bff66417bb85a66357f5ceddba7b697ae7
languageName: node
linkType: hard