From 47b8de26c5dcd6439b1c293de348e2c9eb770995 Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Mon, 6 Oct 2025 10:58:59 +0200 Subject: [PATCH] Fix decoding subscriptions from status --- packages/powersync_core/lib/src/web/sync_worker_protocol.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/powersync_core/lib/src/web/sync_worker_protocol.dart b/packages/powersync_core/lib/src/web/sync_worker_protocol.dart index 950cd1d6..0448fe5a 100644 --- a/packages/powersync_core/lib/src/web/sync_worker_protocol.dart +++ b/packages/powersync_core/lib/src/web/sync_worker_protocol.dart @@ -328,8 +328,8 @@ extension type SerializedSyncStatus._(JSObject _) implements JSObject { }, streamSubscriptions: switch (streamSubscriptions) { null => null, - final serialized => (json.decode(serialized) as List) - .map((e) => CoreActiveStreamSubscription.fromJson( + final serialized => (json.decode(serialized) as List?) + ?.map((e) => CoreActiveStreamSubscription.fromJson( e as Map)) .toList(), },