mirror of
https://github.com/MisskeyIO/misskey
synced 2024-11-23 14:46:40 +09:00
fix(frontend): ユーザーのプロフィールページ閲覧時エラーが発生することがある問題を修正 (MisskeyIO#813)
This commit is contained in:
parent
43f0b9a73c
commit
a761b2e6ce
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user