Skip to content

Commit

Permalink
Issue#1128 display acs data for ccds
Browse files Browse the repository at this point in the history
  • Loading branch information
horatiorosa committed Feb 29, 2024
1 parent 0dc3286 commit c240053
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/components/explorer/source-select-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class SourceSelectDropdownComponent extends Component {
}

get showACS() {
if(['districts', 'blocks', 'ccds'].includes(this.args.geotype)) {
if(['districts', 'blocks'].includes(this.args.geotype)) {
return false;
}
return true;
Expand Down
4 changes: 2 additions & 2 deletions app/components/map-utility-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ export default Component.extend({
})
}

// Reset the source for geotypes that do not have ACS data
if ((['ccds', 'districts'].includes(type)) && (['acs-current', 'acs-previous', 'acs-change'].includes(queryParams['source']))) {
// Reset the source for geotypes that do not have ACS data.
if ((['districts'].includes(type)) && (['acs-current', 'acs-previous', 'acs-change'].includes(queryParams['source']))) {
queryParams['source'] = 'decennial-current';
}

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class ExplorerController extends Controller {
@tracked sourceId = 'decennial-current';

@tracked censusTopics =
'populationSexAgeDensity,mutuallyExclusiveRaceHispanicOrigin,relationHeadHousehold,detailedRaceAndEthnicity,householdType,housingOccupancy,housingTenure,householdSize,';
'populationSexAgeDensity,mutuallyExclusiveRaceHispanicOrigin,detailedRaceAndEthnicity,relationHeadHousehold,householdType,housingOccupancy,housingTenure,householdSize';

@tracked acsTopics =
'demo-sexAndAge,demo-mutuallyExclusiveRaceHispanicOrigin,demo-hispanicSubgroup,demo-asianSubgroup';
Expand Down

0 comments on commit c240053

Please sign in to comment.