Skip to content
Snippets Groups Projects
Commit 06bf5c1f authored by tamaina's avatar tamaina
Browse files

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

ユーザーページのノートタブで小タブを変更すると前のタイムラインが残る問題を修正
parent 9e955d20
No related branches found
No related tags found
No related merge requests found
......@@ -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();
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment