mirror of
https://github.com/jlengrand/signoz.git
synced 2026-03-10 08:41:20 +00:00
fix: nil pointer dereference for empty payload (#5680)
This commit is contained in:
@@ -446,13 +446,15 @@ func (c *CompositeQuery) EnabledQueries() int {
|
||||
}
|
||||
|
||||
func (c *CompositeQuery) Sanitize() {
|
||||
if c == nil {
|
||||
return
|
||||
}
|
||||
// remove groupBy for queries with list panel type
|
||||
for _, query := range c.BuilderQueries {
|
||||
if len(query.GroupBy) > 0 && c.PanelType == PanelTypeList {
|
||||
query.GroupBy = []AttributeKey{}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func (c *CompositeQuery) Validate() error {
|
||||
|
||||
Reference in New Issue
Block a user