Skip to content

Commit

Permalink
Merge branch 'development' into 2661-translation-system
Browse files Browse the repository at this point in the history
  • Loading branch information
yaguzmang authored Oct 15, 2024
2 parents 3c579c1 + e641fc8 commit fa8eb20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/meta/user/authorizer/canViewReview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const hasEditSectionPermission = (

const userRole = Users.getRole(user, countryIso, cycle)

return countryStatus[userRole.role]?.includes(status) && hasCollaboratorEditSectionPermission(props)
return countryStatus[userRole?.role]?.includes(status) && hasCollaboratorEditSectionPermission(props)
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/server/controller/cycleData/getBulkDownload/getNWFP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const getNWFP = async (props: Props) => {
}

const variableSet1 = Array.from({ length: 10 }, (_, i) => `product_${i + 1}`)
const colSet1 = ['product_name', 'value', 'category']
const colSet1 = ['product_name', 'value', 'category', 'quantity', 'unit']

variableSet1.forEach((variableName) => {
colSet1.forEach((colName) => {
Expand Down

0 comments on commit fa8eb20

Please sign in to comment.