infrachild ing

This commit is contained in:
insanity 2017-08-11 18:08:02 +09:00
parent 8dd3cc62f9
commit eba0f7419b
2 changed files with 1 additions and 1 deletions

View File

@ -11,6 +11,7 @@ import * as asyncRequestActions from '@overflow/commons/redux/action/asyncReques
export function mapStateToProps(state: any, props: any): InfraDetailStateProps { export function mapStateToProps(state: any, props: any): InfraDetailStateProps {
return { return {
infra: props.infra,
machine: state.machine, machine: state.machine,
host: state.host, host: state.host,
os: state.os, os: state.os,

View File

@ -55,7 +55,6 @@ export class InfraDetail extends React.Component<Props, State> {
public componentWillMount(): void { public componentWillMount(): void {
let infraType = this.props.infra.infraType.id; let infraType = this.props.infra.infraType.id;
let id = String(this.props.infra.childId); let id = String(this.props.infra.childId);
console.log('**** componentWillMount', infraType);
switch (infraType) { switch (infraType) {
case 1: { case 1: {
this.props.onReadInfraMachine(id); this.props.onReadInfraMachine(id);