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: () {