diff --git a/config-overrides.js b/config-overrides.js index 0fc5785..df939fb 100644 --- a/config-overrides.js +++ b/config-overrides.js @@ -4,7 +4,7 @@ module.exports = { for (const oneOf of oneOfs) { oneOf?.use?.forEach((someUse) => { if (!someUse?.options?.modules?.mode) return; - // someUse.options.modules.localIdentName = '[local]'; + someUse.options.modules.localIdentName = '[local]'; someUse.options.modules.getLocalIdent = (context, localIdentName, localName) => { return localName; }; diff --git a/src/ts/helpers/FileGrip/components/FileBuilder/Tasks.ts b/src/ts/helpers/FileGrip/components/FileBuilder/Tasks.ts index 06bf324..657e17d 100644 --- a/src/ts/helpers/FileGrip/components/FileBuilder/Tasks.ts +++ b/src/ts/helpers/FileGrip/components/FileBuilder/Tasks.ts @@ -3,14 +3,14 @@ import { IDirtyFile } from 'ts/interfaces/FileInfo'; export default class FileBuilderTasks { static setProps(file: any, commit: ICommit) { - file.tasks = [commit.task]; + file.tasks = commit.task ? [commit.task] : []; file.timestamp = [commit.timestamp]; file.totalTasks = 0; file.totalDays = 0; } static updateProps(file: IDirtyFile, commit: ICommit) { - file.tasks.push(commit.task); + if (commit.task) file.tasks.push(commit.task); file.timestamp.push(commit.timestamp); } diff --git a/src/ts/pages/Team/components/Refactor.tsx b/src/ts/pages/Team/components/Refactor.tsx index ec10cc6..143b345 100644 --- a/src/ts/pages/Team/components/Refactor.tsx +++ b/src/ts/pages/Team/components/Refactor.tsx @@ -57,6 +57,7 @@ function View({ response, updateSort, rowsForExcel, mode }: CompaniesProps) { .reverse() .map((taskId: any) => dataGripStore.dataGrip.tasks.statisticByName.get(taskId)) .filter(v => v); + console.log(content); return (