Skip to content

Commit 0e2fa08

Browse files
committed
Fix another error parsing issue.
1 parent c4ad7c8 commit 0e2fa08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/powersync/lib/src/streaming_sync.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ String? stringOrFirst(Object? details) {
380380
return null;
381381
} else if (details is String) {
382382
return details;
383-
} else if (details is List<String>) {
383+
} else if (details is List && details[0] is String) {
384384
return details[0];
385385
} else {
386386
return null;

0 commit comments

Comments
 (0)