This commit is contained in:
bakhirev 2024-10-18 12:24:52 +03:00
parent 8a97106890
commit 7dbfbe6ddc
3 changed files with 4 additions and 3 deletions

View file

@ -4,7 +4,7 @@ module.exports = {
for (const oneOf of oneOfs) { for (const oneOf of oneOfs) {
oneOf?.use?.forEach((someUse) => { oneOf?.use?.forEach((someUse) => {
if (!someUse?.options?.modules?.mode) return; if (!someUse?.options?.modules?.mode) return;
// someUse.options.modules.localIdentName = '[local]'; someUse.options.modules.localIdentName = '[local]';
someUse.options.modules.getLocalIdent = (context, localIdentName, localName) => { someUse.options.modules.getLocalIdent = (context, localIdentName, localName) => {
return localName; return localName;
}; };

View file

@ -3,14 +3,14 @@ import { IDirtyFile } from 'ts/interfaces/FileInfo';
export default class FileBuilderTasks { export default class FileBuilderTasks {
static setProps(file: any, commit: ICommit) { static setProps(file: any, commit: ICommit) {
file.tasks = [commit.task]; file.tasks = commit.task ? [commit.task] : [];
file.timestamp = [commit.timestamp]; file.timestamp = [commit.timestamp];
file.totalTasks = 0; file.totalTasks = 0;
file.totalDays = 0; file.totalDays = 0;
} }
static updateProps(file: IDirtyFile, commit: ICommit) { static updateProps(file: IDirtyFile, commit: ICommit) {
file.tasks.push(commit.task); if (commit.task) file.tasks.push(commit.task);
file.timestamp.push(commit.timestamp); file.timestamp.push(commit.timestamp);
} }

View file

@ -57,6 +57,7 @@ function View({ response, updateSort, rowsForExcel, mode }: CompaniesProps) {
.reverse() .reverse()
.map((taskId: any) => dataGripStore.dataGrip.tasks.statisticByName.get(taskId)) .map((taskId: any) => dataGripStore.dataGrip.tasks.statisticByName.get(taskId))
.filter(v => v); .filter(v => v);
console.log(content);
return ( return (
<Tasks // @ts-ignore <Tasks // @ts-ignore
response={{ content }} response={{ content }}