mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix: update renderlist after asset deleted (#16786)
This commit is contained in:
parent
d2bcf5d716
commit
6419ac74af
2 changed files with 5 additions and 4 deletions
|
|
@ -263,10 +263,6 @@ class GalleryViewerPage extends HookConsumerWidget {
|
|||
PhotoViewGalleryPageOptions buildAsset(BuildContext context, int index) {
|
||||
var newAsset = loadAsset(index);
|
||||
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
ref.read(currentAssetProvider.notifier).set(newAsset);
|
||||
});
|
||||
|
||||
final stackId = newAsset.stackId;
|
||||
if (stackId != null && currentIndex.value == index) {
|
||||
final stackElements =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue