From ce011dc4df47a09c01c74a84e6bb82122eb6ed4a Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 29 Sep 2021 15:25:44 +0100 Subject: [PATCH] Fix table crash when data is null --- packages/bbui/src/Table/Table.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bbui/src/Table/Table.svelte b/packages/bbui/src/Table/Table.svelte index 63f20ac1ff..bcd84e7112 100644 --- a/packages/bbui/src/Table/Table.svelte +++ b/packages/bbui/src/Table/Table.svelte @@ -64,7 +64,7 @@ ) // Reset state when data changes - $: data.length, reset() + $: rows.length, reset() const reset = () => { nextScrollTop = 0 scrollTop = 0