mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-08 04:07:51 -06:00
fix: Fix dependents error when switching accounts
This commit is contained in:
@@ -56,10 +56,11 @@ class SliverSearchBar extends StatelessWidget {
|
||||
},
|
||||
),
|
||||
onPressed: () {
|
||||
final apiVersion = context.read<ApiVersion>();
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (_) => Provider.value(
|
||||
value: context.read<ApiVersion>(),
|
||||
builder: (context) => Provider.value(
|
||||
value: apiVersion,
|
||||
child: const ManageAccountsPage(),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user