Skip to content

Commit 704e1c8

Browse files
committed
Fix ListViews crashing in previews.
1 parent 19c403d commit 704e1c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/transformers/utils/scoped_values.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ class ScopedValues {
8787
_cloudDatabaseRef = instance.cloudDatabase == null
8888
? null
8989
: WeakReference(instance.cloudDatabase!);
90+
} else {
91+
_localStorageRef = null;
92+
_cloudDatabaseRef = null;
9093
}
9194
}
9295
}

0 commit comments

Comments
 (0)