From 2e72715d54fadbc8c814a86de0ce79a27c9c3b02 Mon Sep 17 00:00:00 2001 From: Kgothatso Ngako Date: Fri, 25 Feb 2022 21:22:33 +0200 Subject: [PATCH] Bug fix --- server/router/projects/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/router/projects/index.js b/server/router/projects/index.js index 899bde5..af41882 100644 --- a/server/router/projects/index.js +++ b/server/router/projects/index.js @@ -1004,7 +1004,7 @@ module.exports = function (options) { const cellHeight = 25 translationChapters.sort((a, b) => a.index - b.index).forEach((translationChapter, index) => { - const worksheet_name = `${index+1}-${translationChapter.translationArtifactVersion.dialect.countryId}-${translationChapter.translationArtifactVersion.dialect.languageId} - ${translationArtifactVersion.artifactVersion.artifact.name}`.substring(0, 30); + const worksheet_name = `${index+1}-${translationChapter.translationArtifactVersion.dialect.countryId}-${translationChapter.translationArtifactVersion.dialect.languageId} - ${translationChapter.translationArtifactVersion.artifactVersion.artifact.name}`.substring(0, 30); // Don't have [ ] * ? : / \ const worksheet = workbook.addWorksheet(worksheet_name.replace(/[`*?:'\[\]\\\/]/gi, ""))