Skip to content

Commit b0a01db

Browse files
committed
hack date variables in $group and $project in internalReport
1 parent e8b8494 commit b0a01db

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/server/data_form.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,8 +1343,9 @@ export class FormsAngular {
13431343
pipelineSection < runPipeline.length;
13441344
pipelineSection++
13451345
) {
1346-
if (runPipeline[pipelineSection]["$match"]) {
1347-
this.hackVariables(runPipeline[pipelineSection]["$match"]);
1346+
let sectionType = Object.keys(runPipeline[pipelineSection])[0];
1347+
if (["$match", "$group", "$project"].includes(sectionType)) {
1348+
this.hackVariables(runPipeline[pipelineSection][sectionType]);
13481349
}
13491350
}
13501351
}

0 commit comments

Comments
 (0)