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() {