Skip to content

Commit

Permalink
fix(frontend): In MkPagination, init() also initializes items
Browse files Browse the repository at this point in the history
ユーザーページのノートタブで小タブを変更すると前のタイムラインが残る問題を修正
  • Loading branch information
tamaina committed Jul 6, 2023
1 parent 9e955d2 commit 06bf5c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/frontend/src/components/MkPagination.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 : {};
Expand Down Expand Up @@ -219,8 +220,6 @@ async function init(): Promise<void> {
}
const reload = (): Promise<void> => {
items.value = new Map();
queue.value = new Map();
return init();
};
Expand Down

1 comment on commit 06bf5c1

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chromatic detects changes. Please review the changes on Chromatic.

Please sign in to comment.