From 1818ed364899d1b1d46a6235804f4c580ac03eba Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 18 Jan 2022 22:00:13 +0100 Subject: [PATCH] fix: scrolling to heading if it wasn't available --- src/views/tasks/TaskDetailView.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/tasks/TaskDetailView.vue b/src/views/tasks/TaskDetailView.vue index 0a7edf96..40de50de 100644 --- a/src/views/tasks/TaskDetailView.vue +++ b/src/views/tasks/TaskDetailView.vue @@ -595,6 +595,9 @@ export default { } }, scrollToHeading() { + if(!this.$refs?.heading?.$el) { + return + } this.$refs.heading.$el.scrollIntoView({block: 'center'}) }, setActiveFields() {