Skip to content

Commit 5745ad0

Browse files
fixed js query triggers multiple time on page load
1 parent bd9299f commit 5745ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ QueryCompTmp = class extends QueryCompTmp {
301301

302302
// If the dsl has not changed, but the dependent node value has changed, then trigger the query execution
303303
// FIXME, this should be changed to a reference judgement, but for unknown reasons if the reference is modified once, it will change twice.
304-
if (dependsChanged) {
304+
if (dependsChanged && !isJsQuery) {
305305
if (dslNotChanged) {
306306
this.execute(next);
307307
}

0 commit comments

Comments
 (0)