Commit 28721d2 1 parent ce6b525 commit 28721d2 Copy full SHA for 28721d2
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -362,19 +362,19 @@ const createForm = <TSchema>(props: ICreateFormProps<TSchema>) => {
362
362
363
363
for ( const { condition, expression, values } of schema . overrides ) {
364
364
if ( ! expression ) {
365
- setValues ( { ... values } , { skipNotify : true } ) ;
365
+ setValues ( structuredClone ( values ) , { skipNotify : true } ) ;
366
366
break ;
367
367
}
368
368
369
369
try {
370
370
const result = parse ( expression , { ...options . extraData } ) ;
371
371
if ( condition === ! ! result ) {
372
- setValues ( { ... values } , { skipNotify : true } ) ;
372
+ setValues ( structuredClone ( values ) , { skipNotify : true } ) ;
373
373
break ;
374
374
}
375
375
} catch ( error ) {
376
376
if ( ! condition ) {
377
- setValues ( { ... values } , { skipNotify : true } ) ;
377
+ setValues ( structuredClone ( values ) , { skipNotify : true } ) ;
378
378
break ;
379
379
}
380
380
}
@@ -425,6 +425,7 @@ const createForm = <TSchema>(props: ICreateFormProps<TSchema>) => {
425
425
executeEachExpression ( schema as ISchema [ ] , {
426
426
parent : `${ options . parent } .${ index } ` ,
427
427
extraData : {
428
+ __ITEM__ : getValue ( `${ options . parent } .${ index } ` ) ,
428
429
__INDEX__ : index ,
429
430
} ,
430
431
} ) ;
You can’t perform that action at this time.
0 commit comments