diff --git a/src/containers/BGroup/BGroupBuildingTable.js b/src/containers/BGroup/BGroupBuildingTable.js index 01da6f575446184c244729f4a7f9665483d3d5f4..3faf0c211b164f4049a611861458d77d7474d4fb 100644 --- a/src/containers/BGroup/BGroupBuildingTable.js +++ b/src/containers/BGroup/BGroupBuildingTable.js @@ -319,6 +319,16 @@ export default class BGroupBuildingTable extends Component { ), }, + ...(!this.props.user.permissions['view::bgroupBblColumn']) ? [] : [{ + Header: 'BBL', + filterable: true, + accessor: 'bbl', + Cell: row => ( +
+ {row.value} +
+ ), + }], ], }, ...(!this.state.displayContact) ? [] : [{ Header: () => ( @@ -665,6 +675,12 @@ export default class BGroupBuildingTable extends Component { if (projects) { val.num_projects = projects.length; val.project_types = projects.map(proj => (proj.project_type)); + val.bbl = projects.reduce((acc, proj) => { + if (!acc && proj.bbl) { + return proj.bbl; + } + return acc; + }, null); } else { val.num_projects = 0; val.project_types = [];