Skip to content

Commit

Permalink
Merge pull request #379 from COS301-SE-2024/hotfix/location_filtering…
Browse files Browse the repository at this point in the history
…_error

Hotfix/location filtering error
  • Loading branch information
ShamaKamina authored Oct 1, 2024
2 parents 76cd288 + c2ef270 commit 727e460
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/src/modules/issues/repositories/issueRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class IssueRepository {
category: category_id (
name
),
location: location_id (
location: location_id!inner (
province,
city,
suburb,
Expand Down
4 changes: 2 additions & 2 deletions frontend/app/(home)/organization/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ export default function OrganizationPage() {
items: [
{ value: "all", label: "All Locations" },
...(locations?.map(loc => ({
value: loc.location_id.toString(),
label: `${loc.suburb ? loc.suburb + ", " : ""}${loc.city}, ${loc.province}`,
value: loc.location_id?.toString() ?? '',
label: `${loc.suburb ? loc.suburb + ", " : ""}${loc.city ?? ''}, ${loc.province ?? ''}`,
})) || []),
],
};
Expand Down

0 comments on commit 727e460

Please sign in to comment.