-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Support nested experiment more friendly #2554
Conversation
|
@@ -2,7 +2,7 @@ import * as React from 'react'; | |||
import ReactEcharts from 'echarts-for-react'; | |||
import { filterByStatus } from '../../static/function'; | |||
import { EXPERIMENT } from '../../static/datamodel'; | |||
import { Stack, PrimaryButton, Dropdown, IDropdownOption, } from 'office-ui-fabric-react'; // eslint-disable-line no-unused-vars | |||
import { Stack, PrimaryButton, Dropdown, IDropdownOption } from 'office-ui-fabric-react'; // eslint-disable-line no-unused-vars |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the eslint-disable
needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will delete eslint note now.
let paraYdata: number[][] = []; | ||
const { isNested } = this.state; | ||
if (isNested === false) { | ||
Object.keys(eachTrialParams).map(item => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for ... of
loop should be prefered if the return value is not used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. foreach(item => ... is also better
Object.keys(eachTrialParams).map(item => { | ||
const temp: number[] = []; | ||
for (let i = 0; i < dimName.length; i++) { | ||
// if ('type' in parallelAxis[i]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unused comments here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok,
fix issue #2513
now only support
choice
typedemo: http://13.77.78.63:9090/detail