File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
mobile/apps/photos/lib/ui/viewer Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,9 @@ class DeviceFolderPage extends StatelessWidget {
5656 header: Configuration .instance.hasConfiguredAccount ()
5757 ? BackupHeaderWidget (deviceCollection)
5858 : const SizedBox .shrink (),
59- initialFiles: [deviceCollection.thumbnail! ],
59+ initialFiles: deviceCollection.thumbnail != null
60+ ? [deviceCollection.thumbnail! ]
61+ : const < EnteFile > [],
6062 );
6163 return GalleryFilesState (
6264 child: Scaffold (
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ class _MagicResultScreenState extends State<MagicResultScreen> {
165165 tagPrefix: widget.heroTag,
166166 selectedFiles: _selectedFiles,
167167 enableFileGrouping: _enableGrouping,
168- initialFiles: [files.first],
168+ initialFiles: files.isNotEmpty ? [files.first] : const [ ],
169169 );
170170 return GalleryFilesState (
171171 child: InheritedSearchFilterDataWrapper (
You can’t perform that action at this time.
0 commit comments