From fc4a3d90d5961e648eb65e6cba8003055a032139 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Wed, 26 May 2021 13:27:33 -0700 Subject: [PATCH] Fixes bug --- assets/components/LogEventSource.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/components/LogEventSource.vue b/assets/components/LogEventSource.vue index 9e2c0f51..31fb0571 100644 --- a/assets/components/LogEventSource.vue +++ b/assets/components/LogEventSource.vue @@ -73,11 +73,12 @@ export default { reset() { if (this.es) { this.es.close(); - this.es = null; - this.flushBuffer.cancel(); } + this.flushBuffer.cancel(); + this.es = null; this.messages = []; this.buffer = []; + this.lastEventId = null; }, async loadOlderLogs() { if (this.messages.length < 300) return;