diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2023-07-06 06:43:05 +0000 |
|---|---|---|
| committer | tamaina <tamaina@hotmail.co.jp> | 2023-07-06 06:43:05 +0000 |
| commit | 06bf5c1ff1b52bc1eb72d7a3358995470ff3a97c (patch) | |
| tree | 496d2d0a96a0c72bc7f79f55f9ddce64c87594d4 | |
| parent | :art: (diff) | |
| download | sharkey-06bf5c1ff1b52bc1eb72d7a3358995470ff3a97c.tar.gz sharkey-06bf5c1ff1b52bc1eb72d7a3358995470ff3a97c.tar.bz2 sharkey-06bf5c1ff1b52bc1eb72d7a3358995470ff3a97c.zip | |
fix(frontend): In MkPagination, init() also initializes items
ユーザーページのノートタブで小タブを変更すると前のタイムラインが残る問題を修正
| -rw-r--r-- | packages/frontend/src/components/MkPagination.vue | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkPagination.vue b/packages/frontend/src/components/MkPagination.vue index b361d568e8..661b04c365 100644 --- a/packages/frontend/src/components/MkPagination.vue +++ b/packages/frontend/src/components/MkPagination.vue @@ -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(); }; |