fix: Error with follow logs

This commit is contained in:
Andras Bacsai 2022-02-15 10:57:58 +01:00
parent aa98808a1a
commit bc723b3f15

View File

@ -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);
}
}