Skip to content

Commit

Permalink
fix: set initialData to null on ManyConsumer
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustl22 committed Dec 2, 2023
1 parent 0e163ec commit 044674d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class ManyConsumerState<T extends DataObject, S extends DataObject?> extends Sta
stream: webSocketConnectionStream,
builder: (context, snapshot) => StreamBuilder(
stream: dataProvider.streamMany<T, S>(filterObject: widget.filterObject, init: widget.initialData == null),
initialData: ManyDataObject<T>(data: widget.initialData ?? []),
initialData: widget.initialData == null ? null : ManyDataObject<T>(data: widget.initialData!),
builder: (BuildContext context, AsyncSnapshot<ManyDataObject<T>> snap) {
if (snap.hasError) {
return ExceptionWidget(snap.error!, onRetry: () {
Expand Down

0 comments on commit 044674d

Please sign in to comment.