Explorar o código

html={articleData.html ? [articleData.html] : []}

visuddhinanda %!s(int64=3) %!d(string=hai) anos
pai
achega
60390b4b8f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dashboard/src/components/article/ArticlePrevDrawer.tsx

+ 1 - 1
dashboard/src/components/article/ArticlePrevDrawer.tsx

@@ -73,7 +73,7 @@ const ArticlePrevDrawerWidget = ({
             subTitle={articleData.subtitle}
             summary={articleData.summary}
             content={articleData.content ? articleData.content : ""}
-            html={articleData.html}
+            html={articleData.html ? [articleData.html] : []}
             path={articleData.path}
             created_at={articleData.created_at}
             updated_at={articleData.updated_at}