Skip to content

Commit

Permalink
Bug/VAS-11415: fix bug on upload project in collect (#1318)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbenaissa authored May 4, 2023
1 parent f3d311b commit 3e0e6e3
Showing 1 changed file with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {Component, EventEmitter, Input, OnInit, Output, TemplateRef, ViewChild} from '@angular/core';
import {FormBuilder, FormGroup, Validators} from '@angular/forms';
import {MatDialog, MatDialogRef} from '@angular/material/dialog';
import {MatSnackBar} from '@angular/material/snack-bar';
import {MatTabGroup} from '@angular/material/tabs';
import {ActivatedRoute, Router} from '@angular/router';
import {TranslateService} from '@ngx-translate/core';
import {BehaviorSubject, combineLatest, Observable} from 'rxjs';
import {map, mergeMap} from 'rxjs/operators';
import { Component, EventEmitter, Input, OnInit, Output, TemplateRef, ViewChild } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
import { MatSnackBar } from '@angular/material/snack-bar';
import { MatTabGroup } from '@angular/material/tabs';
import { ActivatedRoute, Router } from '@angular/router';
import { TranslateService } from '@ngx-translate/core';
import { BehaviorSubject, combineLatest, Observable } from 'rxjs';
import { map, mergeMap } from 'rxjs/operators';
import {
DEFAULT_PAGE_SIZE,
Direction,
Expand All @@ -17,8 +17,8 @@ import {
Transaction,
TransactionStatus
} from 'ui-frontend-common';
import {ProjectsApiService} from '../../core/api/project-api.service';
import {ProjectsService} from '../projects.service';
import { ProjectsApiService } from '../../core/api/project-api.service';
import { ProjectsService } from '../projects.service';

@Component({
selector: 'app-project-preview',
Expand Down Expand Up @@ -175,6 +175,7 @@ export class ProjectPreviewComponent implements OnInit {
projectToUpdate.createdOn = this.project.createdOn;
projectToUpdate.unitUp = this.project.unitUp;
projectToUpdate.status = this.project.status;
projectToUpdate.unitUps = this.project.unitUps;
}


Expand All @@ -195,6 +196,7 @@ export class ProjectPreviewComponent implements OnInit {
const projectToUpdate = {
...this.form.value,
name: this.form.value.messageIdentifier,

};
this.mapProjectInternalFields(projectToUpdate);

Expand Down

0 comments on commit 3e0e6e3

Please sign in to comment.