mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
opt handle res
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -23,11 +23,11 @@ class _BlackListPageState extends State<BlackListPage> {
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
List<BlackListItem> list =
|
||||
_blackListController.loadingState.value is Success
|
||||
? (_blackListController.loadingState.value as Success).response
|
||||
: <BlackListItem>[];
|
||||
GStorage.blackMids = list.map((e) => e.mid!).toSet();
|
||||
if (_blackListController.loadingState.value.isSuccess) {
|
||||
GStorage.blackMids = _blackListController.loadingState.value.data!
|
||||
.map((e) => e.mid!)
|
||||
.toSet();
|
||||
}
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user