Skip to content

Commit

Permalink
FIXED : archive a Text Translation project OK.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielc-n committed Apr 11, 2024
1 parent 8e7ca37 commit a0f4b91
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions renderer/src/components/hooks/projects/useProjectsSort.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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();
Expand Down

0 comments on commit a0f4b91

Please sign in to comment.