fix: block settings import #7

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-25 10:16:19 +08:00
parent 0ebe4e9a80
commit 36aa12025e
5 changed files with 14 additions and 66 deletions

View File

@@ -25,7 +25,7 @@ class HistoryController extends GetxController {
Future queryHistoryList({type = 'init'}) async {
int max = 0;
int viewAt = 0;
if (type == 'onload') {
if (type == 'onload' && historyList.isNotEmpty) {
max = historyList.last.history!.oid!;
viewAt = historyList.last.viewAt!;
}