Skip to content

Commit

Permalink
fix(frontend): ユーザーのプロフィールページ閲覧時エラーが発生することがある問題を修正 (#813)
Browse files Browse the repository at this point in the history
  • Loading branch information
u1-liquid authored Nov 10, 2024
1 parent 43f0b9a commit a761b2e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/frontend/src/components/MkAccountMoved.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ const props = defineProps<{
movedFrom?: string; // user id
}>();

misskeyApi('users/show', { userId: props.movedTo ?? props.movedFrom }).then(u => user.value = u);
if (props.movedTo || props.movedFrom) {
misskeyApi('users/show', {
userId: props.movedTo ?? props.movedFrom
}).then(u => user.value = u);
}
</script>

<style lang="scss" module>
Expand Down

0 comments on commit a761b2e

Please sign in to comment.