Fix table crash when data is null

This commit is contained in:
Andrew Kingston 2021-09-29 15:25:44 +01:00
parent 1c93ae509e
commit c5f0a2b34b
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@
)
// Reset state when data changes
$: data.length, reset()
$: rows.length, reset()
const reset = () => {
nextScrollTop = 0
scrollTop = 0