From cb168338ee1c114b5a5b64aafe6a15835385cdc2 Mon Sep 17 00:00:00 2001 From: Zachary Flower Date: Fri, 3 Nov 2023 14:58:58 -0600 Subject: [PATCH] Calculate background visibility, even if the task list is empty (#14870) --- website/client/src/components/tasks/column.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/client/src/components/tasks/column.vue b/website/client/src/components/tasks/column.vue index a4aa1314d8..85a21ba9ac 100644 --- a/website/client/src/components/tasks/column.vue +++ b/website/client/src/components/tasks/column.vue @@ -697,13 +697,13 @@ export default { }, setColumnBackgroundVisibility () { this.$nextTick(() => { - if (!this.$refs.columnBackground || !this.$refs.tasksList) return; + if (!this.$refs.columnBackground) return; const tasksWrapperEl = this.$refs.tasksWrapper; const tasksWrapperHeight = tasksWrapperEl.offsetHeight; const quickAddHeight = this.$refs.quickAdd ? this.$refs.quickAdd.offsetHeight : 0; - const tasksListHeight = this.$refs.tasksList.$el.offsetHeight; + const tasksListHeight = this.$refs.tasksList ? this.$refs.tasksList.$el.offsetHeight : 0; let combinedTasksHeights = tasksListHeight + quickAddHeight;