Skip to content

Commit

Permalink
fix(frontend/abilities/report): dont access users id without .get
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Jul 19, 2024
1 parent b0a2ef8 commit a9dc16a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/app/abilities/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class ReportAbility extends Ability {
this.model?.customerAssignees ?? []
)
.filter((a) => a?.user)
.map((a) => a.user.id)
.map((a) => a.user.get("id"))
.includes(this.user?.get("id")) && !this.model?.verifiedBy?.get("id");
return isEditable || isReviewer;
}
Expand Down

0 comments on commit a9dc16a

Please sign in to comment.