@@ -37,7 +37,6 @@ import {
37
37
FetchCheckNode ,
38
38
FetchInfo ,
39
39
fromRecord ,
40
- fromValue ,
41
40
isCustomAction ,
42
41
MultiBaseComp ,
43
42
multiChangeAction ,
@@ -369,7 +368,7 @@ QueryCompTmp = class extends QueryCompTmp {
369
368
}
370
369
if ( action . type === CompActionTypes . EXECUTE_QUERY ) {
371
370
if ( getReduceContext ( ) . disableUpdateState ) return this ;
372
- if ( ! action . args ) action . args = this . children . variables . toJsonValue ( ) . filter ( kv => kv . key ) . reduce ( ( acc , curr ) => Object . assign ( acc , { [ curr . key as string ] : curr . value } ) , { } ) ;
371
+ action . args = action . args || { } ;
373
372
action . args . $queryName = this . children . name . getView ( ) ;
374
373
375
374
return this . executeQuery ( action ) ;
@@ -711,25 +710,18 @@ class QueryListComp extends QueryListTmpComp implements BottomResListComp {
711
710
}
712
711
713
712
nameAndExposingInfo ( ) :NameAndExposingInfo {
714
- const result :NameAndExposingInfo = { } ;
713
+ let result :NameAndExposingInfo = { } ;
715
714
Object . values ( this . children ) . forEach ( ( comp ) => {
716
715
result [ comp . children . name . getView ( ) ] = comp . exposingInfo ( ) ;
717
716
718
- const variables = comp . children . variables . toJsonValue ( ) ;
719
- variables . forEach ( ( variable :Record < string , any > ) => {
720
- result [ variable . key ] = {
721
- property :fromRecord ( {
722
- value :fromValue ( variable . value ) ,
723
- } ) ,
724
- propertyValue :{
725
- value :variable . value ,
726
- } ,
727
- propertyDesc :{ } ,
728
- methods :{ } ,
729
- } ;
730
- } )
717
+ const variables = comp . children . variables . nameAndExposingInfo ( ) ;
718
+ if ( variables ) {
719
+ result = {
720
+ ...result ,
721
+ ...variables ,
722
+ }
723
+ }
731
724
} ) ;
732
-
733
725
return result ;
734
726
}
735
727