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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy