Skip to content

Commit 47a54e2

Browse files
fix(super-editor): tolerate missing section titlePg map
1 parent bef8cb0 commit 47a54e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/super-editor/src/editors/v1/core/presentation-editor/header-footer/HeaderFooterSessionManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1737,7 +1737,7 @@ export class HeaderFooterSessionManager {
17371737
const headerIds = converter?.headerIds as { titlePg?: boolean } | undefined;
17381738
const footerIds = converter?.footerIds as { titlePg?: boolean } | undefined;
17391739
let titlePgEnabled = headerIds?.titlePg === true || footerIds?.titlePg === true;
1740-
if (this.#multiSectionIdentifier?.sectionTitlePg.has(sectionIndex)) {
1740+
if (this.#multiSectionIdentifier?.sectionTitlePg?.has(sectionIndex)) {
17411741
titlePgEnabled = this.#multiSectionIdentifier.sectionTitlePg.get(sectionIndex) === true;
17421742
}
17431743

0 commit comments

Comments
 (0)