File tree 1 file changed +3
-3
lines changed
client/packages/lowcoder/src/comps/controls/actionSelector
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,14 @@ const ExecuteQueryPropertyView = ({
19
19
placement ?: "query" | "table"
20
20
} ) => {
21
21
const getQueryOptions = useCallback ( ( editorState ?: EditorState ) => {
22
- const options : { label : string ; value : string ; variable ?: Record < string , string > } [ ] =
22
+ const options : { label : string ; value : string ; variables ?: Record < string , string > } [ ] =
23
23
editorState
24
24
?. queryCompInfoList ( )
25
25
. map ( ( info ) => {
26
26
return {
27
27
label : info . name ,
28
28
value : info . name ,
29
- variable : info . data . variable ,
29
+ variables : info . data . variables ,
30
30
}
31
31
} )
32
32
. filter (
@@ -79,7 +79,7 @@ const ExecuteQueryPropertyView = ({
79
79
onChange = { ( value ) => {
80
80
const options = getQueryOptions ( editorState ) ;
81
81
const selectedQuery = options . find ( option => option . value === value ) ;
82
- const variables = selectedQuery ? Object . keys ( selectedQuery . variable || { } ) : [ ] ;
82
+ const variables = selectedQuery ? Object . keys ( selectedQuery . variables || { } ) : [ ] ;
83
83
comp . dispatchChangeValueAction ( {
84
84
queryName : value ,
85
85
queryVariables : variables . map ( ( variable ) => ( { key : variable , value : '' } ) ) ,
You can’t perform that action at this time.
0 commit comments