File tree 2 files changed +8
-1
lines changed
client/packages/lowcoder/src/comps
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,9 @@ const ExecuteQueryPropertyView = ({
56
56
} , [ placement ] ) ;
57
57
58
58
const getVariableOptions = useCallback ( ( editorState ?: EditorState ) => {
59
+ const queryVariables = comp . children . queryVariables . getView ( ) ;
60
+ if ( ! queryVariables . length ) return null ;
61
+
59
62
return comp . children . queryVariables . propertyView ( {
60
63
label : trans ( "eventHandler.queryVariables" ) ,
61
64
layout : "vertical" ,
Original file line number Diff line number Diff line change @@ -259,7 +259,11 @@ QueryCompTmp = class extends QueryCompTmp {
259
259
|| isInputChangeTrigger
260
260
|| ( isPageLoadTrigger && notExecuted )
261
261
)
262
- // && (!isJsQuery || (isJsQuery && notExecuted)) // query which has deps can be executed on page load(first time)
262
+ && (
263
+ ! isJsQuery
264
+ || ( isJsQuery && ! isAutomatic )
265
+ || ( isJsQuery && isAutomatic && notExecuted )
266
+ ) // query which has deps can be executed on page load(first time)
263
267
) {
264
268
const next = super . reduce ( action ) ;
265
269
const depends = this . children . comp . node ( ) ?. dependValues ( ) ;
You can’t perform that action at this time.
0 commit comments