Skip to content

Commit a12610d

Browse files
committed
fix: TypeError: Cannot read property 'map' of undefined
1 parent abf1177 commit a12610d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-api-gateway/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ const normalizeQuery = (query) => {
224224
}
225225
return {
226226
...td,
227-
dateRange: dateRange.map(
227+
dateRange: dateRange && dateRange.map(
228228
(d, i) => (
229229
i === 0 ?
230230
moment.utc(d).format(d.match(DateRegex) ? 'YYYY-MM-DDT00:00:00.000' : moment.HTML5_FMT.DATETIME_LOCAL_MS) :

0 commit comments

Comments
 (0)