diff --git a/src/app/dashboard/models/[modelId]/[tabName]/page.tsx b/src/app/dashboard/models/[modelId]/[tabName]/page.tsx index e702276..72e51fc 100644 --- a/src/app/dashboard/models/[modelId]/[tabName]/page.tsx +++ b/src/app/dashboard/models/[modelId]/[tabName]/page.tsx @@ -18,6 +18,7 @@ import { Link } from '@nextui-org/link'; import React from 'react'; import { Tooltip } from '@nextui-org/tooltip'; import { logger } from '@/logger'; +import CustomErrorPage from '@/app/components/CustomErrorPage'; const log = logger.child({ module: 'modelPage' }); @@ -134,7 +135,17 @@ async function retrieveModelOrLegacy(modelId: string): Promise { } export default async function Page({ params }: { params: ModelPageParams }) { - const model = await retrieveModelOrLegacy(params.modelId); + let model; + try { + model = await retrieveModelOrLegacy(params.modelId); + } catch (e) { + return ( + + ); + } return (