This commit is contained in:
Natsumi
2025-04-28 20:19:20 +10:00
parent 00fd2e6322
commit 53eee91d21
4 changed files with 20 additions and 7 deletions

View File

@@ -10,6 +10,11 @@ const userReq = {
return window.API.call(`users/${params.userId}`, {
method: 'GET'
}).then((json) => {
if (!json) {
throw new Error(
`getUser missing user data for: ${params.userId}`
);
}
const args = {
json,
params