Fix table crash when data is null
This commit is contained in:
parent
1c93ae509e
commit
c5f0a2b34b
|
@ -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