You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2022/08/08 09:39:20 UTC
[incubator-streampipes] branch dev updated: [hotfix] Fix cypress grouping test
This is an automated email from the ASF dual-hosted git repository.
zehnder pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new d9a4c9885 [hotfix] Fix cypress grouping test
d9a4c9885 is described below
commit d9a4c988501ee078dcd0c8e1df7b463346082d2d
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Mon Aug 8 11:38:17 2022 +0200
[hotfix] Fix cypress grouping test
---
.../group-selection-panel/group-selection-panel.component.ts | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ui/src/app/data-explorer/components/designer-panel/data-settings/group-selection-panel/group-selection-panel.component.ts b/ui/src/app/data-explorer/components/designer-panel/data-settings/group-selection-panel/group-selection-panel.component.ts
index 91ef56449..e8f0641cc 100644
--- a/ui/src/app/data-explorer/components/designer-panel/data-settings/group-selection-panel/group-selection-panel.component.ts
+++ b/ui/src/app/data-explorer/components/designer-panel/data-settings/group-selection-panel/group-selection-panel.component.ts
@@ -36,7 +36,9 @@ export class GroupSelectionPanelComponent implements OnInit {
}
ngOnInit() {
- if (this.sourceConfig.queryConfig.groupBy === undefined) {
+ const groupByFields = this.sourceConfig.queryConfig.groupBy;
+
+ if (groupByFields === undefined || groupByFields.length === 0) {
this.applyDefaultFields();
}
}