infrachild ing
This commit is contained in:
parent
8dd3cc62f9
commit
eba0f7419b
|
@ -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,
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user