diff --git a/client/packages/lowcoder-design/src/components/keyValueList.tsx b/client/packages/lowcoder-design/src/components/keyValueList.tsx index dfa6af5b4..a847e0e59 100644 --- a/client/packages/lowcoder-design/src/components/keyValueList.tsx +++ b/client/packages/lowcoder-design/src/components/keyValueList.tsx @@ -100,7 +100,7 @@ export const KeyValueList = (props: { return ( <> {props.list.map((item, index) => ( - + {item} {!props.isStatic && diff --git a/client/packages/lowcoder/src/comps/controls/actionSelector/executeQueryAction.tsx b/client/packages/lowcoder/src/comps/controls/actionSelector/executeQueryAction.tsx index e337ac869..a79b6b52f 100644 --- a/client/packages/lowcoder/src/comps/controls/actionSelector/executeQueryAction.tsx +++ b/client/packages/lowcoder/src/comps/controls/actionSelector/executeQueryAction.tsx @@ -19,14 +19,14 @@ const ExecuteQueryPropertyView = ({ placement?: "query" | "table" }) => { const getQueryOptions = useCallback((editorState?: EditorState) => { - const options: { label: string; value: string; variable?: Record }[] = + const options: { label: string; value: string; variables?: Record }[] = editorState ?.queryCompInfoList() .map((info) => { return { label: info.name, value: info.name, - variable: info.data.variable, + variables: info.data.variables, } }) .filter( @@ -79,7 +79,7 @@ const ExecuteQueryPropertyView = ({ onChange={(value) => { const options = getQueryOptions(editorState); const selectedQuery = options.find(option => option.value === value); - const variables = selectedQuery ? Object.keys(selectedQuery.variable || {}) : []; + const variables = selectedQuery ? Object.keys(selectedQuery.variables || {}) : []; comp.dispatchChangeValueAction({ queryName: value, queryVariables: variables.map((variable) => ({key: variable, value: ''})),