diff --git a/filemanager/src/components/LogsViewer.vue b/filemanager/src/components/LogsViewer.vue index 5d070a0da..2872794be 100644 --- a/filemanager/src/components/LogsViewer.vue +++ b/filemanager/src/components/LogsViewer.vue @@ -16,12 +16,10 @@ @@ -126,7 +124,8 @@ export default { this.logsModel.stream((id, time, html) => { this.logLines.push({ id, time, html}); - const tmp = this.$refs.logsContainer; + const tmp = document.getElementsByClassName('cloudron-layout-body')[0]; + if (!tmp) return; const autoScroll = tmp.scrollTop > (tmp.scrollHeight - tmp.clientHeight - 34); if (autoScroll) setTimeout(() => this.$refs.scrollAnchor.scrollIntoView(false), 1);