Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc8b9c18

Browse files
fixed infinite loop for js queries
1 parent5567f0a commitc8b9c18

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ const ExecuteQueryPropertyView = ({
5656
},[placement]);
5757

5858
constgetVariableOptions=useCallback((editorState?:EditorState)=>{
59+
constqueryVariables=comp.children.queryVariables.getView();
60+
if(!queryVariables.length)returnnull;
61+
5962
returncomp.children.queryVariables.propertyView({
6063
label:trans("eventHandler.queryVariables"),
6164
layout:"vertical",

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,11 @@ QueryCompTmp = class extends QueryCompTmp {
259259
||isInputChangeTrigger
260260
||(isPageLoadTrigger&&notExecuted)
261261
)
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)
263267
){
264268
constnext=super.reduce(action);
265269
constdepends=this.children.comp.node()?.dependValues();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp