File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
client/packages/lowcoder/src/comps/comps/formComp Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -392,9 +392,9 @@ let FormTmpComp = class extends FormBaseComp implements IForm {
392
392
switch ( action . type ) {
393
393
case CompActionTypes . UPDATE_NODES_V2 : {
394
394
const ret = super . reduce ( action ) ;
395
- // When the initial value changes, update the form
396
- if ( action . value [ "initialData" ] !== undefined ) {
397
- queueMicrotask ( ( ) => {
395
+ if ( ret . children . initialData !== this . children . initialData ) {
396
+ // FIXME: kill setTimeout ?
397
+ setTimeout ( ( ) => {
398
398
this . dispatch (
399
399
customAction < SetDataAction > (
400
400
{
@@ -404,7 +404,7 @@ let FormTmpComp = class extends FormBaseComp implements IForm {
404
404
false
405
405
)
406
406
) ;
407
- } ) ;
407
+ } , 1000 ) ;
408
408
}
409
409
return ret ;
410
410
}
You can’t perform that action at this time.
0 commit comments