diff --git a/examples/tg-mini-app/src/routes/RenderRouter.tsx b/examples/tg-mini-app/src/routes/RenderRouter.tsx index 0c57e85..63f92ec 100644 --- a/examples/tg-mini-app/src/routes/RenderRouter.tsx +++ b/examples/tg-mini-app/src/routes/RenderRouter.tsx @@ -20,7 +20,8 @@ export const renderRoutes = (mainRoutes) => { }> {subRoutes .filter((item: any) => !!item.component) - .map(({ component, path, name, isPublic }) => { + .map((it: any) => { + const { component, path, name, isPublic } = it || {} // const Component = lazy(component) const Component = component return (