diff --git a/src/ts/@overflow/sensor/react/SensorConfiguration.tsx b/src/ts/@overflow/sensor/react/SensorConfiguration.tsx index af0ea43..74dc63b 100644 --- a/src/ts/@overflow/sensor/react/SensorConfiguration.tsx +++ b/src/ts/@overflow/sensor/react/SensorConfiguration.tsx @@ -32,7 +32,8 @@ export function mapStateToProps(state: any, props: any): SensorConfigurationStat export function mapDispatchToProps(dispatch: Dispatch): SensorConfigurationDispatchProps { return { onReadAllTargetByDomain: (domain: Domain) => { - dispatch(asyncRequestActions.request('InfraService', 'readAllByDomain', targetListActions.REQUEST, JSON.stringify(domain))); + dispatch(asyncRequestActions.request('InfraService', 'readAllByDomain', + targetListActions.REQUEST, JSON.stringify(domain), '0', '10')); }, onReadInfra: (infraId: number) => { dispatch(asyncRequestActions.request('InfraService', 'read', readActionType.REQUEST, infraId)); diff --git a/src/ts/@overflow/sensor/react/components/SensorConfiguration.tsx b/src/ts/@overflow/sensor/react/components/SensorConfiguration.tsx index bc6df93..c8fb081 100644 --- a/src/ts/@overflow/sensor/react/components/SensorConfiguration.tsx +++ b/src/ts/@overflow/sensor/react/components/SensorConfiguration.tsx @@ -104,12 +104,16 @@ export class ConfigStepper extends React.Component = new Array; for (let infra of this.props.infraList) { let option = { - // key: crawler.id, + key: infra.target.id, text: infra.target.displayName, value: infra.target.id, icon: 'check', // or close? @@ -180,23 +184,26 @@ export class ConfigStepper extends React.Component = new Array; + this.convertInfraList(); - elems.push( - , - ); + // let elems: Array = new Array; - return null; + // elems.push( + return (); + // ); + + // return elems; } public render(): JSX.Element { + return (