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
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