Skip to content
Snippets Groups Projects
Commit e2cefd11 authored by Cam Saül's avatar Cam Saül
Browse files

Merge pull request #2649 from metabase/fix-broken-today-filter

Fix broken today filter :scream_cat:
parents a2efd6a7 99ff1b92
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,9 @@ export function generateTimeIntervalDescription(n, unit) {
return "Yesterday";
}
}
if (!unit && n === 0) return "Today"; // ['relative-datetime', 'current'] is a legal MBQL form but has no unit
unit = inflection.capitalize(unit);
if (typeof n === "string") {
if (n === "current") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment