feat: testing mode banner + snapshot storage fields fix
This commit is contained in:
@@ -6,6 +6,7 @@ import { observer } from "mobx-react-lite";
|
||||
export const PreviewLeftWidget = observer(() => {
|
||||
const { articleMedia, articleData } = articlesStore;
|
||||
const { language } = languageStore;
|
||||
const body = articleData?.[language]?.body;
|
||||
|
||||
return (
|
||||
<Paper
|
||||
@@ -66,7 +67,7 @@ export const PreviewLeftWidget = observer(() => {
|
||||
{articleData?.[language]?.heading || "Название информации"}
|
||||
</Typography>
|
||||
</Box>
|
||||
{articleData?.[language]?.body && (
|
||||
{body && (
|
||||
<Box
|
||||
sx={{
|
||||
padding: 1,
|
||||
@@ -77,7 +78,7 @@ export const PreviewLeftWidget = observer(() => {
|
||||
flexGrow: 1,
|
||||
}}
|
||||
>
|
||||
<ReactMarkdownComponent value={articleData?.[language]?.body} />
|
||||
<ReactMarkdownComponent value={body} />
|
||||
</Box>
|
||||
)}
|
||||
</Paper>
|
||||
|
||||
Reference in New Issue
Block a user