Content-Length: 262516 | pFad | http://github.com/lowcoder-org/lowcoder/commit/804449fe3e883400afd98b7e0168ec7ce7b8bb6d

06 fix choose datasource dropdown in query panel value · lowcoder-org/lowcoder@804449f · GitHub
Skip to content

Commit 804449f

Browse files
fix choose datasource dropdown in query panel value
1 parent 55ffef5 commit 804449f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

client/packages/lowcoder/src/comps/queries/queryComp/queryPropertyView.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,11 @@ export const QueryGeneralPropertyView = (props: {
239239
comp.children.datasourceId.dispatchChangeValueAction(QUICK_REST_API_ID);
240240
}
241241

242+
if (datasourceType === 'js' && datasourceId === '') {
243+
datasourceId = JS_CODE_ID;
244+
comp.children.datasourceId.dispatchChangeValueAction(JS_CODE_ID);
245+
}
246+
242247
const triggerOptions = useMemo(() => {
243248
if (datasourceType === "js" || datasourceType === "streamApi") {
244249
return JSTriggerTypeOptions;

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/804449fe3e883400afd98b7e0168ec7ce7b8bb6d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy