From a0f4b91680973db2b6ef031e15ed5355d26ac30d Mon Sep 17 00:00:00 2001 From: danielc-n Date: Thu, 11 Apr 2024 16:47:41 +0200 Subject: [PATCH] FIXED : archive a Text Translation project OK. --- renderer/src/components/hooks/projects/useProjectsSort.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/renderer/src/components/hooks/projects/useProjectsSort.js b/renderer/src/components/hooks/projects/useProjectsSort.js index a84a6fbb..c5e0f6cc 100644 --- a/renderer/src/components/hooks/projects/useProjectsSort.js +++ b/renderer/src/components/hooks/projects/useProjectsSort.js @@ -263,9 +263,9 @@ function useProjectsSort() { if (_project.identification.name.en !== name) { return; } const flavorName = _project.type.flavorType.flavor.name; - logger.debug(`flavorName == ${flavorName}`); + logger.debug('useProjectSort.js', `flavorName == ${flavorName}`); const dirNameMap = { - textTranslation: 'juxtalinear', + textTranslation: 'textTranslation', textStories: 'textStories', audioTranslation: 'audioTranslation', 'x-juxtalinear': 'x-juxtalinear', @@ -274,7 +274,6 @@ function useProjectsSort() { const dirName = dirNameMap[flavorName]; if (!dirName) { return; } - logger.debug(`_project.project == ${JSON.stringify(_project.project, null, 4)}`); const status = _project.project[dirName].isArchived; _project.project[dirName].isArchived = !status; _project.project[dirName].lastSeen = moment().format();