diff --git a/app/[leaflet_id]/actions/PublishButton.tsx b/app/[leaflet_id]/actions/PublishButton.tsx index 093bc3ec..4098d1ff 100644 --- a/app/[leaflet_id]/actions/PublishButton.tsx +++ b/app/[leaflet_id]/actions/PublishButton.tsx @@ -176,7 +176,7 @@ const PublishToPublicationButton = (props: { entityID: string }) => {
- {selectedPub !== "looseleaf" && ( + {selectedPub !== "looseleaf" && selectedPub && (
{props.title}
{props.description}
-
-

- {props.record?.base_path} -

+ {props.record && ( + <> +
+

+ {props.record?.base_path} +

+ + )}
diff --git a/components/Pages/Page.tsx b/components/Pages/Page.tsx index f9c7144f..22d5220d 100644 --- a/components/Pages/Page.tsx +++ b/components/Pages/Page.tsx @@ -60,7 +60,7 @@ export function Page(props: { /> } > - {props.first && ( + {props.first && pageType === "doc" && ( <>