Commit 7c967683 by John Doe

bug fix

parent 7b39aaf0
Showing with 7 additions and 1 deletions
......@@ -202,7 +202,13 @@ class LoadStreamData
# eg: events, compute intervals from the actual decimated data
def __build_intervals_from_decimated_data(elements, resp)
# compute intervals from resp
return { id: e.id, type: 'interval', values: [] } if resp.empty?
if resp.empty?
elements.map do |e|
{ id: e.id,
type: 'interval',
values: [] }
end
end
intervals = []
interval_start = nil
interval_end = nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment