Return empty arrays for empty report frames instead of null
This commit is contained in:
@@ -111,7 +111,7 @@ func (b *reportFrameBuilder) freshFrame() {
|
||||
if b.frame != nil {
|
||||
aux := *b.frame
|
||||
b.frame = &aux
|
||||
b.frame.Rows = nil
|
||||
b.frame.Rows = []FrameRow{}
|
||||
return
|
||||
}
|
||||
|
||||
@@ -120,6 +120,8 @@ func (b *reportFrameBuilder) freshFrame() {
|
||||
Source: b.def.Source,
|
||||
Ref: b.def.Ref,
|
||||
|
||||
Rows: []FrameRow{},
|
||||
|
||||
Columns: b.def.Columns,
|
||||
Sort: b.def.Sort,
|
||||
Filter: b.def.Filter,
|
||||
|
||||
Reference in New Issue
Block a user