File tree 3 files changed +7
-11
lines changed
3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -79,10 +79,9 @@ export const pages: SequenceChild<
79
79
isRequired : ( data ) => ! ! data . registration ?. rockDetails ?. isAccessorized ,
80
80
isComplete : ( data ) =>
81
81
! data . registration ?. rockDetails ?. isAccessorized ||
82
- ( ! ! data . accessoryInventory &&
83
- data . accessoryInventory . accessories . every (
84
- ( accessory ) => ! ! accessory ?. type ,
85
- ) ) ,
82
+ ! ! data . accessoryInventory ?. accessories ?. every (
83
+ ( accessory ) => ! ! accessory ?. type ,
84
+ ) ,
86
85
Component : AccessoryInventoryForm ,
87
86
} ,
88
87
{
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import type {
10
10
UseFormWatch ,
11
11
Resolver ,
12
12
UseFormReturn ,
13
+ DeepPartial ,
13
14
} from 'react-hook-form' ;
14
15
import { useForm } from 'react-hook-form' ;
15
16
import { useMultiPageHookForm } from '../../../src/hookForm' ;
@@ -90,6 +91,7 @@ export function FormContainer<DataT extends FieldValues>({
90
91
< div >
91
92
< h3 className = "mt-0" > Full Sequence</ h3 >
92
93
< SequenceVisualizer
94
+ // @ts -expect-error
93
95
data = { watch ( ) }
94
96
currentPage = { currentPage }
95
97
pages = { pages }
Original file line number Diff line number Diff line change 3
3
"version" : " 0.1.1" ,
4
4
"description" : " Tools to handle multi-page forms" ,
5
5
"main" : " dist/index.js" ,
6
- "files" : [
7
- " dist"
8
- ],
6
+ "files" : [" dist" ],
9
7
"scripts" : {
10
8
"build" : " tsc" ,
11
9
"build:watch" : " tsc -w" ,
16
14
"test" : " jest" ,
17
15
"test:watch" : " jest --watch"
18
16
},
19
- "keywords" : [
20
- " forms" ,
21
- " multi-page"
22
- ],
17
+ "keywords" : [" forms" , " multi-page" ],
23
18
"author" : " Stu Kabakoff" ,
24
19
"license" : " MIT" ,
25
20
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments