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 {
392392    switch  ( action . type )  { 
393393      case  CompActionTypes . UPDATE_NODES_V2 : { 
394394        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 ( ( )  =>  { 
398398            this . dispatch ( 
399399              customAction < SetDataAction > ( 
400400                { 
@@ -404,7 +404,7 @@ let FormTmpComp = class extends FormBaseComp implements IForm {
404404                false 
405405              ) 
406406            ) ; 
407-           } ) ; 
407+           } ,   1000 ) ; 
408408        } 
409409        return  ret ; 
410410      } 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments