fix(devices): Make devices state remember current device on refresh

- Resolve #258
pull/398/head
NaiJi ✨ 2023-11-30 10:04:57 +04:00
parent 76f977bc50
commit da0b0b7670
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class ApiDevicesCubit
}
Future<void> refresh() async {
emit(const ApiDevicesState([], LoadingStatus.refreshing));
emit(ApiDevicesState([state.thisDevice], LoadingStatus.refreshing));
_refetch();
}