Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: creating new album from search section stuck on loading state

ashilkn2a7d6428a033
diff --git a/lib/models/search/search_types.dart b/lib/models/search/search_types.dart
index 59ca1b623d..9702b2e1b6 100644
--- a/lib/models/search/search_types.dart
+++ b/lib/models/search/search_types.dart
@@ -1,3 +1,5 @@
+import "dart:async";
+
import "package:flutter/material.dart";
import "package:logging/logging.dart";
import "package:photos/core/event_bus.dart";
@@ -211,9 +213,11 @@ extension SectionTypeExtensions on SectionType {
try {
final Collection c =
await CollectionsService.instance.createAlbum(text);
- await routeToPage(
- context,
- CollectionPage(CollectionWithThumbnail(c, null)),
+ unawaited(
+ routeToPage(
+ context,
+ CollectionPage(CollectionWithThumbnail(c, null)),
+ ),
);
} catch (e, s) {
Logger("CreateNewAlbumIcon")