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

Commit

Permalink
Merge pull request #22 from Badmuts/hub-room-bug
Browse files Browse the repository at this point in the history
Fix hub details being empty
  • Loading branch information
brandonvanwijk authored Jun 21, 2017
2 parents 773f23f + f5c9112 commit 9187af7
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 9187af7

Please sign in to comment.