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) {
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;
};

View file

@ -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);
}

View file

@ -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 (
<Tasks // @ts-ignore
response={{ content }}