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) {
|
async function fetchUser(userId) {
|
||||||
let userPromise = users.get(userId)
|
let userPromise = users.get(userId)
|
||||||
user = await userPromise
|
user = await userPromise
|
||||||
|
if (!user?._id) {
|
||||||
|
$goto("./")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function toggleFlags(detail) {
|
async function toggleFlags(detail) {
|
||||||
|
|
Loading…
Reference in New Issue