Fix issue when using an invalid user ID in url
This commit is contained in:
parent
055a04271c
commit
7cc728ca69
|
@ -188,6 +188,9 @@
|
|||
async function fetchUser(userId) {
|
||||
let userPromise = users.get(userId)
|
||||
user = await userPromise
|
||||
if (!user?._id) {
|
||||
$goto("./")
|
||||
}
|
||||
}
|
||||
|
||||
async function toggleFlags(detail) {
|
||||
|
|
Loading…
Reference in New Issue