From 5255a70272cb930496dd080467e6c7265bb13ca0 Mon Sep 17 00:00:00 2001
From: Tom Robinson <tlrobinson@gmail.com>
Date: Tue, 2 May 2017 18:16:11 -0700
Subject: [PATCH] Don't show zoom action if already all the way zoomed

---
 frontend/src/metabase/qb/lib/actions.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frontend/src/metabase/qb/lib/actions.js b/frontend/src/metabase/qb/lib/actions.js
index d8b3e973be6..12d17e7e556 100644
--- a/frontend/src/metabase/qb/lib/actions.js
+++ b/frontend/src/metabase/qb/lib/actions.js
@@ -121,7 +121,7 @@ export const drillDownForDimensions = dimensions => {
     if (timeDimensions.length === 1) {
         const column = timeDimensions[0].column;
         let nextUnit = UNITS[Math.max(0, UNITS.indexOf(column.unit) - 1)];
-        if (nextUnit) {
+        if (nextUnit && nextUnit !== column.unit) {
             return {
                 name: column.unit,
                 breakout: [
-- 
GitLab