Skip to content

Commit

Permalink
Handle crash issue when country field not present in projects API
Browse files Browse the repository at this point in the history
  • Loading branch information
royallsilwallz committed Feb 24, 2025
1 parent c8f5dff commit dbd16c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/projects/exploreProjectsTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const COLUMNS = [
</span>
),
cell: ({ row }) => {
if (!row.original?.country[0]) return null;
if (!row.original?.country?.[0]) return null;
return <span title={row.original.country[0]}>{row.original.country[0]}</span>;
},
},
Expand Down

0 comments on commit dbd16c9

Please sign in to comment.