Fix table crash when data is null
This commit is contained in:
parent
8b9b6dd4e2
commit
ce011dc4df
|
@ -64,7 +64,7 @@
|
|||
)
|
||||
|
||||
// Reset state when data changes
|
||||
$: data.length, reset()
|
||||
$: rows.length, reset()
|
||||
const reset = () => {
|
||||
nextScrollTop = 0
|
||||
scrollTop = 0
|
||||
|
|
Loading…
Reference in New Issue