Commit 70fb900c authored by Lijiao's avatar Lijiao Committed by xuehui
Browse files

randint range, duration less than 1 (#1151)

parent cae70729
......@@ -162,8 +162,8 @@ class Para extends React.Component<ParaProps, ParaState> {
parallelAxis.push({
dim: i,
name: dimName[i],
min: searchKey._value[0] + 1,
max: searchKey._value[1] - 1,
min: searchKey._value[0],
max: searchKey._value[1],
});
break;
......
......@@ -263,8 +263,12 @@ class TableList extends React.Component<TableListProps, TableListState> {
sorter: (a: TableObj, b: TableObj) => (a.duration as number) - (b.duration as number),
render: (text: string, record: TableObj) => {
let duration;
if (record.duration !== undefined && record.duration > 0) {
duration = convertDuration(record.duration);
if (record.duration !== undefined) {
if (record.duration > 0 && record.duration < 1) {
duration = `${record.duration}s`;
} else {
duration = convertDuration(record.duration);
}
} else {
duration = 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment