Skip to content

Commit d644d95

Browse files
committed
fix: #172 Create-time-entries-manually fix view
1 parent 1dfee7f commit d644d95

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/app/modules/shared/components/details-fields/details-fields.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div>
2-
<div *ngIf="formType === 'entries'" class="input-group input-group-sm mb-3 flex-nowrap">
2+
<div class="input-group input-group-sm mb-3 flex-nowrap">
33
<div class="input-group-prepend">
44
<span class="input-group-text span-width" id="inputGroup-sizing-sm">Project</span>
55
</div>

src/app/modules/shared/components/details-fields/details-fields.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {
8787

8888
ngOnChanges(): void {
8989
if (this.entryToEdit) {
90-
this.selectedTechnology = this.entryToEdit.technologies;
90+
this.selectedTechnology = this.entryToEdit.technologies ? this.entryToEdit.technologies : [];
9191
this.project = this.listProjects.find((p) => p.id === this.entryToEdit.project_id);
9292
const activity = this.activities.find((a) => a.id === this.entryToEdit.activity_id);
9393
this.projectName = this.project.name;

src/app/modules/time-entries/pages/time-entries.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class TimeEntriesComponent implements OnInit {
1616
entryId: string;
1717
entry: Entry;
1818
entryToDelete: Entry;
19-
dataByMonth: Entry[];
19+
dataByMonth = [];
2020
entryList: Entry[];
2121

2222
constructor(private store: Store<EntryState>) {}

0 commit comments

Comments
 (0)