From e648988b5345168e370b4643204766ecda618105 Mon Sep 17 00:00:00 2001 From: inportb Date: Thu, 2 Jan 2025 22:49:25 -0500 Subject: [PATCH] Fix flowsheet auto-scroll to end --- htdocs/ViewData.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/ViewData.vue b/htdocs/ViewData.vue index 9474e6d..9defcf1 100644 --- a/htdocs/ViewData.vue +++ b/htdocs/ViewData.vue @@ -226,7 +226,7 @@ }, watch: { async resultset(value) { - this.$nextTick(() => this.$refs.headers ? this.$refs.headers.scrollIntoView({ block: 'nearest', inline: 'end' }) : null); + this.$nextTick(() => (this.$refs.headers) && (this.$refs.headers.length > 0) ? this.$refs.headers[this.$refs.headers.length - 1].scrollIntoView({ block: 'nearest', inline: 'end' }) : null); } }, methods: {