From 8226d0a1aedf675f7b57d03bbfc34e1daa950625 Mon Sep 17 00:00:00 2001 From: Igor Guastalla de Lima Date: Sun, 1 Sep 2019 11:19:23 -0300 Subject: [PATCH] Clear history is now disabled when there aren't any histories --- components/history.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/components/history.vue b/components/history.vue index 79a489d7b..05d802e16 100644 --- a/components/history.vue +++ b/components/history.vue @@ -126,6 +126,7 @@ updateOnLocalStorage('history', this.history); }, enableHistoryClearing() { + if (!this.history || !this.history.length) return; this.isClearingHistory = true; }, disableHistoryClearing() {