Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: TTA-50 Error when editing an entry
  • Loading branch information
wilc0519 committed Jul 22, 2022
commit ce56829b465f2a8cd73c65fc2731a6702f6f6454
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
(search)="onClearedComponent($event)"
(change)="onSelectedProject($event)"
ngDefaultControl="project_name">

<ng-template ng-option-tmp let-item="item">
<div class="flex flex-wrap flex-row justify-between">
<div class="p-2 text-xs">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class TimeEntriesComponent implements OnInit, OnDestroy, AfterViewInit {
editEntry(entryId: string) {
this.entryId = entryId;
this.store.pipe(select(getTimeEntriesDataSource)).subscribe(ds => {
this.entry = ds.data.find((entry) => entry.id === entryId);
this.entry = {... ds.data.find((entry) => entry.id === entryId)};
this.canMarkEntryAsWIP = this.isEntryRunningEqualsToEntryToEdit(this.getEntryRunning(ds.data), this.entry)
|| this.isTheEntryToEditTheLastOne(ds.data);
});
Expand Down