Skip to content

Commit

Permalink
fix moderation
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically committed Dec 21, 2024
1 parent 246df0d commit 39ab037
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/frontend/src/pages/moderation/review.vue
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ if (projects.value) {
projects.value = projects.value.map((project) => {
project.owner = members.value
.flat()
.find((x) => x.team_id === project.team_id && x.role === "Owner");
project.org = orgs.value.find((x) => x.id === project.organization);
? members.value.flat().find((x) => x.team_id === project.team_id && x.role === "Owner")
: null;
project.org = orgs.value ? orgs.value.find((x) => x.id === project.organization) : null;
project.age = project.queued ? now - app.$dayjs(project.queued) : Number.MAX_VALUE;
project.age_warning = "";
if (project.age > TIME_24H * 2) {
Expand Down

0 comments on commit 39ab037

Please sign in to comment.