From e829fd9bb480e8c963b6cae71b5814ea77419256 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 30 Jul 2024 20:35:34 +0000 Subject: [PATCH] fix: handle if target element is null --- packages/nc-gui/components/smartsheet/Kanban.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nc-gui/components/smartsheet/Kanban.vue b/packages/nc-gui/components/smartsheet/Kanban.vue index 7a3ef2d309..411f8a9127 100644 --- a/packages/nc-gui/components/smartsheet/Kanban.vue +++ b/packages/nc-gui/components/smartsheet/Kanban.vue @@ -278,6 +278,8 @@ async function onMove(event: any, stackKey: string) { } const kanbanListScrollHandler = useDebounceFn(async (e: any) => { + if (!e.target) return + if (e.target.scrollTop + e.target.clientHeight + INFINITY_SCROLL_THRESHOLD >= e.target.scrollHeight) { const stackTitle = e.target.getAttribute('data-stack-title') const pageSize = appInfo.value.defaultLimit || 25