mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: handle response
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -35,7 +35,8 @@ class HistoryController extends MultiSelectController {
|
||||
max = data.list?.lastOrNull?.history?.oid;
|
||||
viewAt = data.list?.lastOrNull?.viewAt;
|
||||
if (currentPage != 1 && loadingState.value is Success) {
|
||||
data.list?.insertAll(
|
||||
data.list ??= <HisListItem>[];
|
||||
data.list!.insertAll(
|
||||
0,
|
||||
List<HisListItem>.from((loadingState.value as Success).response),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user