We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
$key
1 parent 66c1cce commit bb37c31Copy full SHA for bb37c31
packages/core/src/core/useRegle/root/createReactiveNestedStatus.ts
@@ -606,7 +606,7 @@ export function createReactiveNestedStatus({
606
}
607
608
for (const field of Object.values($fields.value)) {
609
- field.$reset(options, true);
+ field?.$reset(options, true);
610
611
612
if (options?.clearExternalErrors) {
@@ -621,7 +621,7 @@ export function createReactiveNestedStatus({
621
622
function $touch(runCommit = true, withConditions = false): void {
623
624
- field.$touch(runCommit, withConditions);
+ field?.$touch(runCommit, withConditions);
625
626
627
0 commit comments