mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
fix(mobile): null check on null value on top app bar (#6406)
Fixed issue with null check on null value causing the top app bar render a gray overlay when open an asset in Album On Device section in Library page
This commit is contained in:
parent
7fc1954e2a
commit
76bad762d7
@ -179,4 +179,4 @@ SPEC CHECKSUMS:
|
|||||||
|
|
||||||
PODFILE CHECKSUM: 599d8aeb73728400c15364e734525722250a5382
|
PODFILE CHECKSUM: 599d8aeb73728400c15364e734525722250a5382
|
||||||
|
|
||||||
COCOAPODS: 1.11.3
|
COCOAPODS: 1.12.1
|
||||||
|
@ -39,7 +39,9 @@ class TopControlAppBar extends HookConsumerWidget {
|
|||||||
const double iconSize = 22.0;
|
const double iconSize = 22.0;
|
||||||
final a = ref.watch(assetWatcher(asset)).value ?? asset;
|
final a = ref.watch(assetWatcher(asset)).value ?? asset;
|
||||||
final album = ref.watch(currentAlbumProvider);
|
final album = ref.watch(currentAlbumProvider);
|
||||||
final comments = album != null
|
final comments = album != null &&
|
||||||
|
album.remoteId != null &&
|
||||||
|
asset.remoteId != null
|
||||||
? ref.watch(activityStatisticsProvider(album.remoteId!, asset.remoteId))
|
? ref.watch(activityStatisticsProvider(album.remoteId!, asset.remoteId))
|
||||||
: 0;
|
: 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user