mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-22 08:20:10 +00:00
fix(frontend): In MkPagination, init() also initializes items
ユーザーページのノートタブで小タブを変更すると前のタイムラインが残る問題を修正
This commit is contained in:
parent
9e955d20c4
commit
06bf5c1ff1
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue