mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-23 05:39:05 +00:00
Fix room not found error
This commit is contained in:
@@ -3,6 +3,7 @@ import { useError } from "../(errors)/errorContext";
|
||||
import { Meeting } from "../api";
|
||||
import { shouldShowError } from "../lib/errorUtils";
|
||||
import useApi from "../lib/useApi";
|
||||
import { notFound } from "next/navigation";
|
||||
|
||||
type ErrorMeeting = {
|
||||
error: Error;
|
||||
@@ -52,7 +53,7 @@ const useRoomMeeting = (
|
||||
})
|
||||
.catch((error) => {
|
||||
const shouldShowHuman = shouldShowError(error);
|
||||
if (shouldShowHuman) {
|
||||
if (shouldShowHuman && error.status !== 404) {
|
||||
setError(
|
||||
error,
|
||||
"There was an error loading the meeting. Please try again by refreshing the page."
|
||||
|
||||
Reference in New Issue
Block a user