File tree 2 files changed +4
-4
lines changed
lowcoder/src/comps/controls/actionSelector
lowcoder-design/src/components
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export const KeyValueList = (props: {
100
100
return (
101
101
< >
102
102
{ props . list . map ( ( item , index ) => (
103
- < IndicatorWrapper key = { index } >
103
+ < IndicatorWrapper key = { index } indicatorForAll = { props . indicatorForAll } >
104
104
< KeyValueListItem key = { index /* FIXME: find a proper key instead of `index` */ } >
105
105
{ item }
106
106
{ ! props . isStatic &&
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