fix(frontend): In MkPagination, init() also initializes items

ユーザーページのノートタブで小タブを変更すると前のタイムラインが残る問題を修正
This commit is contained in:
tamaina 2023-07-06 06:43:05 +00:00
parent 9e955d20c4
commit 06bf5c1ff1

View File

@ -188,6 +188,7 @@ watch(queue, (a, b) => {
}, { deep: true });
async function init(): Promise<void> {
items.value = new Map();
queue.value = new Map();
fetching.value = true;
const params = props.pagination.params ? isRef(props.pagination.params) ? props.pagination.params.value : props.pagination.params : {};
@ -219,8 +220,6 @@ async function init(): Promise<void> {
}
const reload = (): Promise<void> => {
items.value = new Map();
queue.value = new Map();
return init();
};