Commit d9e9d03 1 parent 17a7d16 commit d9e9d03 Copy full SHA for d9e9d03
File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export const useField = <TSchema extends ISchemaFieldCore>(props: {
48
48
formState : form . state . containerFormState ,
49
49
ref : _ref ,
50
50
form,
51
- data : schema . config . data || { } ,
51
+ data : schema . config ? .data || { } ,
52
52
onChange : useCallback (
53
53
( arg : any ) => {
54
54
if ( typeof arg === "function" ) {
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export const useFieldArray = <TSchema extends ISchemaFieldCore>(props: {
54
54
formState : form . state . containerFormState ,
55
55
ref : _ref ,
56
56
form,
57
- data : schema . config . data || { } ,
57
+ data : schema . config ? .data || { } ,
58
58
onChange : useCallback (
59
59
( arg : any ) => {
60
60
if ( typeof arg === "function" ) {
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export const useFieldForm = <TSchema extends ISchemaFieldCore>(props: {
44
44
formState : form . state . containerFormState ,
45
45
ref : _ref ,
46
46
form,
47
- data : schema . config . data || { } ,
47
+ data : schema . config ? .data || { } ,
48
48
onChange : useCallback (
49
49
( arg : any ) => {
50
50
if ( typeof arg === "function" ) {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export const useView = <TSchema extends ISchemaCore>(props: {
23
23
24
24
return {
25
25
state : form . getSchemaViewState < TSchema [ "propStateType" ] & IDefaultProp > ( schema as any ) ,
26
- data : schema . config . data || { } ,
26
+ data : schema . config ? .data || { } ,
27
27
form,
28
28
} ;
29
29
} ;
You can’t perform that action at this time.
0 commit comments