1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-27 14:28:49 +09:00

fix(frontend): ユーザーのプロフィールページ閲覧時エラーが発生することがある問題を修正 (MisskeyIO#813)

This commit is contained in:
あわわわとーにゅ 2024-11-10 13:03:38 +09:00 committed by GitHub
parent 43f0b9a73c
commit a761b2e6ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,11 @@ const props = defineProps<{
movedFrom?: string; // user id 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> </script>
<style lang="scss" module> <style lang="scss" module>