diff --git a/components/Blocks/StandardSitePostBlock/index.tsx b/components/Blocks/StandardSitePostBlock/index.tsx index e3642c0e..46b784e8 100644 --- a/components/Blocks/StandardSitePostBlock/index.tsx +++ b/components/Blocks/StandardSitePostBlock/index.tsx @@ -6,8 +6,10 @@ import { Toggle } from "components/Toggle"; import { SettingsTriggerButton } from "../SettingsTriggerButton"; import { StandardSitePostItem, + WithStandardSitePostPublicationTheme, type StandardSitePostSize, } from "./StandardSitePostItem"; +import { useStandardSitePost } from "components/StandardSitePostDataProvider"; import { useLeafletPublicationData } from "components/PageSWRDataProvider"; export const StandardSitePostBlock = ( @@ -26,10 +28,11 @@ export const StandardSitePostBlock = ( let showPubTheme = showPubThemeFact?.data.value !== false; let editorPub = useLeafletPublicationData(); let currentPublicationUri = editorPub.data?.publications?.uri ?? null; + let { data: post } = useStandardSitePost(uri); if (!uri) return null; - return ( + let block = ( ); + + if (!post) return block; + + return ( + + {block} + + ); }; function StandardSitePostSettingsButton(props: { entityID: string }) {