Skip to content

Commit

Permalink
fix: fix kanban lane dnd
Browse files Browse the repository at this point in the history
  • Loading branch information
nichenqin committed Nov 24, 2024
1 parent 0526e97 commit 88801d1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,11 @@
}
})
let lastSetPage = 0
$: {
// @ts-ignore
const records = ($query.data?.pages.flatMap((r: any) => r.records) as IRecordsDTO) ?? []
const records = ($query.data?.pages.slice(lastSetPage).flatMap((r: any) => r.records) as IRecordsDTO) ?? []
lastSetPage = $query.data?.pages.length ?? 0
recordsStore.upsertRecords(Records.fromJSON($table, records))
}
Expand Down

0 comments on commit 88801d1

Please sign in to comment.