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;