mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(mobile): app crash when there is no object detection result on search page (#725)
* fix(mobile): app crash when there is no data for object detection * Up version for release * Up version for release
This commit is contained in:
parent
242f10952d
commit
10239161fd
7 changed files with 14 additions and 14 deletions
|
|
@ -99,9 +99,9 @@ class SearchPage extends HookConsumerWidget {
|
|||
|
||||
_buildThings() {
|
||||
return curatedObjects.when(
|
||||
loading: () => const SizedBox(
|
||||
height: 200,
|
||||
child: Center(child: ImmichLoadingIndicator()),
|
||||
loading: () => SizedBox(
|
||||
height: imageSize,
|
||||
child: const Center(child: ImmichLoadingIndicator()),
|
||||
),
|
||||
error: (err, stack) => Text('Error: $err'),
|
||||
data: (objects) {
|
||||
|
|
@ -133,8 +133,7 @@ class SearchPage extends HookConsumerWidget {
|
|||
),
|
||||
)
|
||||
: SizedBox(
|
||||
// height: imageSize,
|
||||
width: imageSize,
|
||||
height: imageSize,
|
||||
child: ListView.builder(
|
||||
padding: const EdgeInsets.only(left: 16),
|
||||
scrollDirection: Axis.horizontal,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue