mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
opt: use cascade (#812)
This commit is contained in:
committed by
GitHub
parent
877732e1e7
commit
6f69a45195
@@ -85,10 +85,7 @@ class _FavVideoPageState extends State<FavVideoPage>
|
||||
},
|
||||
);
|
||||
if (res == true) {
|
||||
List<FavFolderItemData> list =
|
||||
(_favController.loadingState.value as Success)
|
||||
.response;
|
||||
list.removeAt(index);
|
||||
_favController.loadingState.value.data!.removeAt(index);
|
||||
_favController.loadingState.refresh();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user