Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
Auto-merged master into filter-buildings on deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Badmuts authored Jun 21, 2017
2 parents b1d7cb6 + 9187af7 commit 87a8cb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/containers/HubsDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class HubsDetails extends Component {
constructor(props) {
super(props);
this.state = {
hub: {},
hub: this.props.location.state.hub,
buildings: [],
selectedBuilding: false
};
Expand Down
2 changes: 1 addition & 1 deletion src/containers/HubsDetails.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ it("renders without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(
<MemoryRouter>
<HubsDetails />
<HubsDetails location={{ state: { hub: { sensors: [] } } }} />
</MemoryRouter>,
div
);
Expand Down

0 comments on commit 87a8cb7

Please sign in to comment.