mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-08 17:11:14 +00:00
fix(devices): Make devices state remember current device on refresh
- Resolve https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.app/issues/258
This commit is contained in:
parent
76f977bc50
commit
da0b0b7670
|
@ -21,7 +21,7 @@ class ApiDevicesCubit
|
|||
}
|
||||
|
||||
Future<void> refresh() async {
|
||||
emit(const ApiDevicesState([], LoadingStatus.refreshing));
|
||||
emit(ApiDevicesState([state.thisDevice], LoadingStatus.refreshing));
|
||||
_refetch();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue