Bugfix: App add doesn't redirect if nav away during add

This commit is contained in:
Imran Remtulla
2023-03-25 00:54:12 -04:00
parent 07c490bb0e
commit 4c04af3868

View File

@@ -156,7 +156,7 @@ class _AddAppPageState extends State<AddAppPage> {
}() }()
.then((app) { .then((app) {
if (app != null) { if (app != null) {
Navigator.push(context, Navigator.push(globalNavigatorKey.currentContext ?? context,
MaterialPageRoute(builder: (context) => AppPage(appId: app.id))); MaterialPageRoute(builder: (context) => AppPage(appId: app.id)));
} }
}).catchError((e) { }).catchError((e) {