Skip to content

Commit f23e901

Browse files
fixed onQueryExec trigger to run dep queries on success only
1 parent b1c8799 commit f23e901

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,11 @@ const QueryListTmpComp = list(QueryComp);
688688
class QueryListComp extends QueryListTmpComp implements BottomResListComp {
689689
override reduce(action: CompAction): this {
690690
if (isCustomAction<AfterExecuteQueryAction>(action, "afterExecQuery")) {
691-
if (action.path?.length === 1 && !isNaN(parseInt(action.path[0]))) {
691+
if (
692+
action.path?.length === 1
693+
&& !isNaN(parseInt(action.path[0]))
694+
&& action.value.result.success
695+
) {
692696
const queryIdx = parseInt(action.path[0]);
693697
const queryComps = this.getView();
694698
const queryName = queryComps?.[queryIdx]?.children.name.getView();

0 commit comments

Comments
 (0)