Skip to content

Commit

Permalink
fix(checklist): fixed one time tasks breaking checklist
Browse files Browse the repository at this point in the history
  • Loading branch information
Supamiu committed Sep 16, 2023
1 parent f26b3d0 commit 9c6c03e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ export class ChecklistComponent {
const frequencyKey = {
[TaskFrequency.DAILY]: "daily",
[TaskFrequency.WEEKLY]: "weekly",
[TaskFrequency.BIWEEKLY]: "biWeekly"
[TaskFrequency.BIWEEKLY]: "biWeekly",
[TaskFrequency.ONE_TIME]: "oneTime"
}[row.task.frequency];
const scopeKey = row.task.scope === TaskScope.CHARACTER ? "Character" : "Roster";
const data = [
Expand All @@ -182,9 +183,11 @@ export class ChecklistComponent {
dailyCharacter: { data: [], done: false },
weeklyCharacter: { data: [], done: false },
biWeeklyCharacter: { data: [], done: false },
oneTimeCharacter: { data: [], done: false },
dailyRoster: { data: [], done: false },
weeklyRoster: { data: [], done: false },
biWeeklyRoster: { data: [], done: false }
biWeeklyRoster: { data: [], done: false },
oneTimeRoster: { data: [], done: false }
});

return {
Expand Down
1 change: 1 addition & 0 deletions apps/client/src/app/pages/tasks/tasks/tasks.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
<nz-select formControlName="frequency">
<nz-option [nzValue]="TaskFrequency.DAILY" nzLabel="Daily"></nz-option>
<nz-option [nzValue]="TaskFrequency.WEEKLY" nzLabel="Weekly"></nz-option>
<nz-option [nzValue]="TaskFrequency.BIWEEKLY" nzLabel="Biweekly"></nz-option>
<nz-option [nzValue]="TaskFrequency.ONE_TIME" nzLabel="One time"></nz-option>
</nz-select>
</nz-input-group>
Expand Down

0 comments on commit 9c6c03e

Please sign in to comment.