Skip to content

Commit

Permalink
Merge pull request #1530 from lowcoder-org/fix/remove_variable_from_c…
Browse files Browse the repository at this point in the history
…onfig

Remove variables from exposing config
  • Loading branch information
FalkWolsky authored Feb 13, 2025
2 parents bc1c2e7 + 53ceb64 commit 168d347
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions client/packages/lowcoder/src/comps/queries/queryComp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -664,23 +664,6 @@ export const QueryComp = withExposingConfigs(QueryCompTmp, [
new NameConfig("isFetching", trans("query.isFetchingExportDesc")),
new NameConfig("runTime", trans("query.runTimeExportDesc")),
new NameConfig("latestEndTime", trans("query.latestEndTimeExportDesc")),
new DepsConfig(
"variables",
(children: any) => {
return {data: children.variables.children.variables.node()};
},
(input) => {
if (!input.data) {
return undefined;
}
const newNode = Object.values(input.data)
.filter((kvNode: any) => kvNode.key)
.map((kvNode: any) => ({[kvNode.key]: kvNode.value}))
.reduce((prev, obj) => ({...prev, ...obj}), {});
return newNode;
},
trans("query.variables")
),
new NameConfig("triggerType", trans("query.triggerTypeExportDesc")),
]);

Expand Down

0 comments on commit 168d347

Please sign in to comment.