Skip to content

Commit

Permalink
Fix renderRegion misnaming after refactor (#1592)
Browse files Browse the repository at this point in the history
* Fix renderRegion misnaming after refactor

* Bump patch version
  • Loading branch information
eatonphil authored and Matthew Parke committed Apr 14, 2017
1 parent 6c59394 commit ad42a76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linode-manager",
"version": "0.2.0",
"version": "0.2.1",
"description": "The Linode Manager website",
"scripts": {
"clean": "rimraf dist",
Expand Down
8 changes: 4 additions & 4 deletions src/components/Region.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default class Region extends Component {
this.renderDisabled = this.renderDisabled.bind(this);
}

renderRegion = (region) => {
renderZone = (region) => {
const { selected, onRegionSelected } = this.props;
const dcClass = region.id === selected ? 'selected' : '';

Expand All @@ -37,16 +37,16 @@ export default class Region extends Component {
);
}

renderRegion = (regionsInRegion, region) => {
renderRegion = (zonesInRegion, region) => {
const allRealRegions = this.props.regions;
const regions = Object.values(allRealRegions).filter(({ id }) =>
regionsInRegion.indexOf(id) !== -1);
zonesInRegion.indexOf(id) !== -1);

return regions.length ? (
<div key={region}>
<h3>{region}</h3>
<div className="region-group">
{regions.map(this.renderRegion)}
{regions.map(this.renderZone)}
</div>
</div>
) : null;
Expand Down

0 comments on commit ad42a76

Please sign in to comment.