diff --git a/common/web/types/src/kmx/kmx-plus.ts b/common/web/types/src/kmx/kmx-plus.ts index 1b111953d72..7305abcb050 100644 --- a/common/web/types/src/kmx/kmx-plus.ts +++ b/common/web/types/src/kmx/kmx-plus.ts @@ -210,15 +210,13 @@ export class Strs extends Section { } // nfd if (opts?.nfd) { - if (!sections.meta) { - throw Error(`Internal Error: need 'meta' section to check normalization mode.`); - } else if (!sections.meta.normalizationDisabled) { + if (!sections?.meta?.normalizationDisabled) { if (opts?.markers) { s = MarkerParser.nfd_markers(s, false); } else { s = s.normalize("NFD"); } - } // else: disabled, do nothing + } } return s; }