Skip to content

Commit 46c423d

Browse files
fix(group-by): fixing error while changing the group by from a key to none (#1453)
1 parent 728596a commit 46c423d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/observability/src/shared/components/explore-query-editor/group-by/explore-query-group-by-editor.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class ExploreQueryGroupByEditorComponent implements OnChanges {
8383
.pipe(
8484
filter(expression => this.isValidExpressionToEmit(expression)),
8585
debounceTime(500),
86-
map(expression => omit(expression, 'metadata'))
86+
map(expression => (isEmpty(expression) ? undefined : omit(expression, 'metadata')))
8787
)
8888
.subscribe(this.groupByExpressionChange);
8989
}

0 commit comments

Comments
 (0)