fix: creating new album from search section stuck on loading state (#1665)
This commit is contained in:
commit
e78c898a48
1 changed files with 7 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue