From 0a68adea759509d08570065cb6e62d7cfe848eab Mon Sep 17 00:00:00 2001 From: nobody Date: Wed, 12 Aug 2020 07:23:33 +0200 Subject: [PATCH] Fixed: Reload content after data was deleted (#74) --- pages/statistics/statistics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/statistics/statistics.js b/pages/statistics/statistics.js index 33f7dfac..f1dfb84e 100644 --- a/pages/statistics/statistics.js +++ b/pages/statistics/statistics.js @@ -208,10 +208,10 @@ statistics._handlerDateRange = function ({ target }) { let type = target.value; if (type === 'day' || type === 'week' || type === 'month' || type === 'year') { statistics._dateUnit = type; - statistics._getStatistics().then(statistics._setDateRange); } else if (type === 'delete') { statistics._deleteStatistic(); } + statistics._getStatistics().then(statistics._setDateRange); }; statistics._deleteStatistic = function () {