Commit abb7fc7c authored by 陈龙's avatar 陈龙

fix: 修复排序按钮无效的问题

parent c07c2bc9
......@@ -219,7 +219,7 @@ const timeColumn = {
ellipsis: true,
align: 'center',
sorter: true,
sortOrder:'descend'
// sortOrder:['descend','ascend']
};
const HistoryView = (props) => {
......@@ -238,7 +238,7 @@ const HistoryView = (props) => {
defaultDate,
} = props;
const isBoxPlots =
deviceParams?.length === 1 && deviceParams[0]?.sensors?.split(',').length === 1;
deviceParams?.length === 1 && deviceParams?.[0]?.sensors?.split(',').length === 1;
const [loading, setLoading] = useState(false);
const [activeTabKey, setActiveTabKey] = useState(defaultModel);
......@@ -827,7 +827,7 @@ const HistoryView = (props) => {
{renderTimeOption()}
{renderCurveOption(
true,
deviceParams?.length === 1 && deviceParams[0]?.sensors?.split(',').length === 1,
deviceParams?.length === 1 && deviceParams?.[0]?.sensors?.split(',').length === 1,
)}
</div>
<div className={`${prefixCls}-content`}>
......
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