diff --git a/public/js/plugin-download.js b/public/js/plugin-download.js index 2346fe2..11c047c 100644 --- a/public/js/plugin-download.js +++ b/public/js/plugin-download.js @@ -70,7 +70,7 @@ const buildTable = (chapters) => { const rows = chapters.map(ch => { const tds = Object.values(ch).map(v => { const maxLength = 40; - const shouldShrink = v.length > maxLength; + const shouldShrink = v && v.length > maxLength; const content = shouldShrink ? `${v.substring(0, maxLength)}...
${v}
` : v; return `${content}` }).join('');