From bc723b3f150988b321e3987002f9901800e883e3 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 15 Feb 2022 10:57:58 +0100 Subject: [PATCH] fix: Error with follow logs --- src/routes/applications/[id]/logs/build/_BuildLog.svelte | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/routes/applications/[id]/logs/build/_BuildLog.svelte b/src/routes/applications/[id]/logs/build/_BuildLog.svelte index 839621f28..349d60eea 100644 --- a/src/routes/applications/[id]/logs/build/_BuildLog.svelte +++ b/src/routes/applications/[id]/logs/build/_BuildLog.svelte @@ -57,15 +57,12 @@ logs = logs.concat(data.logs.map((log) => ({ ...log, line: cleanAnsiCodes(log.line) }))); dispatch('updateBuildStatus', { status }); - if (followingBuild) { - const logEl = document.getElementById('logs'); - logEl.scrollTop = logEl.scrollHeight; - } } catch ({ error }) { return errorNotification(error); } }, 1000); } catch ({ error }) { + console.log(error); return errorNotification(error); } }