Skip to content

Commit

Permalink
fix: TypeError: Cannot read property 'map' of undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov committed Feb 4, 2020
1 parent abf1177 commit a12610d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cubejs-api-gateway/index.js
Expand Up @@ -224,7 +224,7 @@ const normalizeQuery = (query) => {
}
return {
...td,
dateRange: dateRange.map(
dateRange: dateRange && dateRange.map(
(d, i) => (
i === 0 ?
moment.utc(d).format(d.match(DateRegex) ? 'YYYY-MM-DDT00:00:00.000' : moment.HTML5_FMT.DATETIME_LOCAL_MS) :
Expand Down

0 comments on commit a12610d

Please sign in to comment.