Fix table crash when data is null

This commit is contained in:
Andrew Kingston 2021-09-29 15:25:44 +01:00
parent 8b9b6dd4e2
commit ce011dc4df
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