Skip to content

Commit

Permalink
fix: error for open project when marking task as done #3779
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesjo committed Jan 3, 2025
1 parent 61142c4 commit 333f81d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import { formatOpenProjectWorkPackageSubjectForSnack } from '../../format-open-p
import { concatMap, first, map, switchMap } from 'rxjs/operators';
import { Store } from '@ngrx/store';
import { IssueProviderActions } from '../../../../store/issue-provider.actions';
import { assertTruthy } from '../../../../../../util/assert-truthy';
import { FormsModule } from '@angular/forms';
import { AsyncPipe } from '@angular/common';
import { TaskService } from '../../../../../tasks/task.service';
Expand Down Expand Up @@ -138,9 +137,8 @@ export class DialogOpenProjectTrackTimeComponent {
this.workPackage = this.data.workPackage;
this.started = this._convertTimestamp(this.data.task.created);
this.comment = this.data.task.parentId ? this.data.task.title : '';
this.timeLoggedForWorkPackage = parseOpenProjectDuration(
assertTruthy(this.workPackage.spentTime),
);

this.timeLoggedForWorkPackage = parseOpenProjectDuration(this.workPackage.spentTime);
this.timeSpentToday = this.data.task.timeSpentOnDay[this._dateService.todayStr()];
this.timeSpentLoggedDelta = Math.max(
0,
Expand Down

0 comments on commit 333f81d

Please sign in to comment.