Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
fix: report verifier is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
MitanOmar committed Mar 20, 2023
1 parent 6d30565 commit ac12349
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/components/report-row/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export default class ReportRowComponent extends Component {
get title() {
return this.editable
? ""
: `This entry was already verified by ${this.args.report.verifiedBy.fullName} and therefore not editable anymore`;
: `This entry was already verified by ${this.args.report.get(
"verifiedBy.fullName"
)} and therefore not editable anymore`;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion app/index/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default class IndexRoute extends Route.extend(RouteAutostartTourMixin) {
this.store.query("attendance", { date: day }),
this.store.query("absence-type", {}),
this.store.query("report", {
include: "task,task.project,task.project.customer,user",
include: "task,task.project,task.project.customer,verified-by",
date: day,
user: userId,
}),
Expand Down

0 comments on commit ac12349

Please sign in to comment.