diff --git a/web/actions/articles.ts b/web/actions/articles.ts index 0260d0aa..7094db35 100644 --- a/web/actions/articles.ts +++ b/web/actions/articles.ts @@ -9,7 +9,7 @@ export const fetchArticle = async (id: string, locale: string) => { const { data } = await client.query({ query: gql` query Article($id: String!, $locale: LocaleInputType!) { - Article(id: $id, locale: $locale) { + Article(id: $id, locale: $locale, limit: 0) { id title date diff --git a/web/components/article/content.tsx b/web/components/article/content.tsx index 84cc0075..d3b541a5 100644 --- a/web/components/article/content.tsx +++ b/web/components/article/content.tsx @@ -19,7 +19,12 @@ export const ContentRenderer = ({ }; const renderNode = (node: ArticleContentBlock) => { - if (node.children.length === 1 && node.children[0].text === "") return
; + if ( + node.children.length === 1 && + node.children[0].text === "" && + node.type != "upload" + ) + return
; switch (node.type) { case "h1": return

{node.children.map(renderLeaf)}

; diff --git a/web/components/yachts/yacht/details.tsx b/web/components/yachts/yacht/details.tsx index 5bc1cfd5..b676db87 100644 --- a/web/components/yachts/yacht/details.tsx +++ b/web/components/yachts/yacht/details.tsx @@ -235,12 +235,14 @@ const Details = () => { } > - {(data.keyFeatures && data.keyFeatures.length > 0) || - (data.customKeyFeatures && data.customKeyFeatures.length > 0) ? ( - - ) : ( - <> - )} + { + /*(data.keyFeatures && data.keyFeatures.length > 0) ||*/ + data.customKeyFeatures && data.customKeyFeatures.length > 0 ? ( + + ) : ( + <> + ) + }