fix: override title preview header

This commit is contained in:
Michal Szczepanski 2023-10-30 17:40:18 +01:00
parent 891e91d413
commit 257872aebe

@ -64,7 +64,7 @@ export const HtmlPreviewHeaderComponent: FunctionComponent<Props> = (props) => {
const renderHeader = (obj: ObjDto<ObjPageDto>): void => {
const snapshot: PageSnapshotDto = obj.data.snapshot;
if (titleRef.current) {
titleRef.current.innerHTML = snapshot.info.title;
titleRef.current.innerHTML = obj.data.override?.title || snapshot.info.title;
}
if (urlRef.current) {
urlRef.current.innerHTML = `