Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Commit

Permalink
[Bug fix]: remove 'Object not iterable' error when query result is em…
Browse files Browse the repository at this point in the history
…pty (Git: issue #316)
  • Loading branch information
Ofir Cohen authored and Ofir Cohen committed Mar 30, 2021
1 parent d5d369f commit 34e0244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/response_parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class ResponseParser {

public static parseDataQuery(results, format) {
if (!results.rows) {
return { data: [] };
return [ { data: [] }];
}
let res = null;
if (format === 'time_series') {
Expand Down

0 comments on commit 34e0244

Please sign in to comment.