Content-Length: 296526 | pFad | http://github.com/lowcoder-org/lowcoder/commit/9f02fc79cf0e625ed2a4384be1d16379ffd47e0a

8B fix issue with variable update of event panel when query change · lowcoder-org/lowcoder@9f02fc7 · GitHub
Skip to content

Commit 9f02fc7

Browse files
committed
fix issue with variable update of event panel when query change
1 parent 3a7daae commit 9f02fc7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/packages/lowcoder/src/comps/controls/actionSelector/executeQueryAction.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ const ExecuteQueryPropertyView = ({
1919
placement?: "query" | "table"
2020
}) => {
2121
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> }[] =
2323
editorState
2424
?.queryCompInfoList()
2525
.map((info) => {
2626
return {
2727
label: info.name,
2828
value: info.name,
29-
variable: info.data.variable,
29+
variables: info.data.variables,
3030
}
3131
})
3232
.filter(
@@ -79,7 +79,7 @@ const ExecuteQueryPropertyView = ({
7979
onChange={(value) => {
8080
const options = getQueryOptions(editorState);
8181
const selectedQuery = options.find(option => option.value === value);
82-
const variables = selectedQuery ? Object.keys(selectedQuery.variable || {}) : [];
82+
const variables = selectedQuery ? Object.keys(selectedQuery.variables || {}) : [];
8383
comp.dispatchChangeValueAction({
8484
queryName: value,
8585
queryVariables: variables.map((variable) => ({key: variable, value: ''})),

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/lowcoder-org/lowcoder/commit/9f02fc79cf0e625ed2a4384be1d16379ffd47e0a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy