fix: override title preview header
This commit is contained in:
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 = `
|
||||
|
Loading…
Reference in New Issue
Block a user