mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-13 09:48:27 +03:00
fix: check user exists before we try and set it in the map
This commit is contained in:
@@ -147,9 +147,11 @@ function InternalGPTChartPage({
|
||||
userMap.set(user.id, user);
|
||||
}
|
||||
}
|
||||
|
||||
// Add current user, since there's no guarantee they are returned from either API.
|
||||
userMap.set(user.id, user);
|
||||
|
||||
if (user) {
|
||||
// Add current user, since there's no guarantee they are returned from either API.
|
||||
userMap.set(user.id, user);
|
||||
}
|
||||
|
||||
return (
|
||||
<Row>
|
||||
|
||||
Reference in New Issue
Block a user