Browse Source

neon: use helper methods to find active application

pull/342/head
Nikolas Rimikis 2 years ago
parent
commit
22f94a5c30
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 2
      packages/neon/neon/lib/src/router.dart

2
packages/neon/neon/lib/src/router.dart

@ -105,7 +105,7 @@ class NextcloudAppSettingsRoute extends GoRouteData {
@override
Widget build(final BuildContext context, final GoRouterState state) {
final appImplementations = Provider.of<List<AppImplementation>>(context, listen: false);
final appImplementation = appImplementations.firstWhere((final app) => app.id == appid);
final appImplementation = appImplementations.find(appid)!;
return NextcloudAppSettingsPage(appImplementation: appImplementation);
}

Loading…
Cancel
Save