fix(announcement): お知らせ機能の改善・バグ修正 (MisskeyIO#280)
・過去のお知らせでは表示順設定を適用しないように ・過去のお知らせでもわかったボタンが出るように ・お知らせ管理画面では表示順設定を適用しないように ・お知らせ管理画面のページング処理のバグ修正
This commit is contained in:
parent
ba4f9279fb
commit
c31f27e327
3 changed files with 18 additions and 13 deletions
|
@ -193,7 +193,7 @@ function fetch(resetOffset = false): void {
|
|||
}).then(announcementResponse => {
|
||||
announcements = announcements.concat(announcementResponse);
|
||||
hasMore.value = announcementResponse?.length === 10;
|
||||
offset.value += announcements.length;
|
||||
offset.value += announcementResponse?.length ?? 0;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue