Skip to content

Commit

Permalink
Update DisasterTable.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ericboucher committed Jul 22, 2024
1 parent 0d16aaa commit 09000a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/frontend/components/DisasterTable/DisasterTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ export const DisasterTable = ({
// TODO - activate column visibility model when PR is stable
const columnVisibilityModel = {}; // generateColumnVisibilityModel(columns, data);

// Make province, district, commune columns not hideable
// Make location columns non-hideable
const updatedColumns = columns.map(column => {
if (['province', 'district', 'commune'].includes(column.field)) {
if (
['province', 'district', 'commune', 'location'].includes(column.field)
) {
return {
...column,
hideable: false,
Expand Down

0 comments on commit 09000a5

Please sign in to comment.