diff --git a/src/app/(app)/[works]/[slug]/page.tsx b/src/app/(app)/[works]/[slug]/page.tsx index e49e897..a215a2d 100644 --- a/src/app/(app)/[works]/[slug]/page.tsx +++ b/src/app/(app)/[works]/[slug]/page.tsx @@ -31,7 +31,6 @@ export default async function Work({ params }: { params: { slug: string } }) { const gallery: WorkType['gallery'] = work?.gallery as WorkType['gallery']; - const children = description?.root.children return ( @@ -42,11 +41,11 @@ export default async function Work({ params }: { params: { slug: string } }) { {title} -
- {children && children.text &&
- {serializeLexical({ nodes: description?.root?.children })} -
} -
+
+
+ {serializeLexical({ nodes: description!.root?.children })} +
+
diff --git a/src/components/Map/index.tsx b/src/components/Map/index.tsx index 2a279be..49f4077 100644 --- a/src/components/Map/index.tsx +++ b/src/components/Map/index.tsx @@ -11,7 +11,7 @@ const Map = (props: }) => { const height = props.height ?? '450' return ( - props.hasCoordinates(props.work?.coordenadas) &&
+ props.hasCoordinates(props.work?.coordenadas) &&
) };