diff --git a/dashboard/src/components/shared/ConsoleDisplayer.vue b/dashboard/src/components/shared/ConsoleDisplayer.vue index 1ec5458cb..dfee44ce9 100644 --- a/dashboard/src/components/shared/ConsoleDisplayer.vue +++ b/dashboard/src/components/shared/ConsoleDisplayer.vue @@ -43,7 +43,7 @@ export default { } }, mounted() { - if (this.logCache.length == 0) { + if (this.logCache.length === 0) { this.delayInit() } else { this.init() @@ -51,7 +51,7 @@ export default { }, methods: { delayInit() { - if (this.logCache.length == 0) { + if (this.logCache.length === 0) { setTimeout(() => { this.delayInit() }, 500) diff --git a/dashboard/src/stores/common.js b/dashboard/src/stores/common.js index ad12a2ac9..f983115ca 100644 --- a/dashboard/src/stores/common.js +++ b/dashboard/src/stores/common.js @@ -96,7 +96,7 @@ export const useCommonStore = defineStore({ // Store controller to allow closing the connection this.eventSource = controller; }, - closeWebSocket() { + closeEventSourcet() { if (this.eventSource) { this.eventSource.abort(); this.eventSource = null;