Browse Source

fix: handle if target element is null

pull/9112/head
Pranav C 4 months ago
parent
commit
e829fd9bb4
  1. 2
      packages/nc-gui/components/smartsheet/Kanban.vue

2
packages/nc-gui/components/smartsheet/Kanban.vue

@ -278,6 +278,8 @@ async function onMove(event: any, stackKey: string) {
} }
const kanbanListScrollHandler = useDebounceFn(async (e: any) => { const kanbanListScrollHandler = useDebounceFn(async (e: any) => {
if (!e.target) return
if (e.target.scrollTop + e.target.clientHeight + INFINITY_SCROLL_THRESHOLD >= e.target.scrollHeight) { if (e.target.scrollTop + e.target.clientHeight + INFINITY_SCROLL_THRESHOLD >= e.target.scrollHeight) {
const stackTitle = e.target.getAttribute('data-stack-title') const stackTitle = e.target.getAttribute('data-stack-title')
const pageSize = appInfo.value.defaultLimit || 25 const pageSize = appInfo.value.defaultLimit || 25

Loading…
Cancel
Save