From 044674d723c099feeb848c739f1b021a8e67b731 Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Sun, 3 Dec 2023 00:38:19 +0100 Subject: [PATCH] fix: set initialData to null on ManyConsumer --- wrestling_scoreboard_client/lib/ui/components/consumer.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrestling_scoreboard_client/lib/ui/components/consumer.dart b/wrestling_scoreboard_client/lib/ui/components/consumer.dart index 43946c52..2d1e2bb4 100644 --- a/wrestling_scoreboard_client/lib/ui/components/consumer.dart +++ b/wrestling_scoreboard_client/lib/ui/components/consumer.dart @@ -83,7 +83,7 @@ class ManyConsumerState extends Sta stream: webSocketConnectionStream, builder: (context, snapshot) => StreamBuilder( stream: dataProvider.streamMany(filterObject: widget.filterObject, init: widget.initialData == null), - initialData: ManyDataObject(data: widget.initialData ?? []), + initialData: widget.initialData == null ? null : ManyDataObject(data: widget.initialData!), builder: (BuildContext context, AsyncSnapshot> snap) { if (snap.hasError) { return ExceptionWidget(snap.error!, onRetry: () {