Значение pointCount по умолчанию удалено из components/charts/Column

This commit is contained in:
goodmice 2021-11-15 10:57:37 +05:00
parent e553c4c67f
commit 6d962a89e3

View File

@ -47,8 +47,6 @@ export const GetOrCreateDatasetByLineConfig = (data, lineConfig) => {
export const Column = React.memo(({ lineGroup, data, postParsing, interval, yDisplay, yStart, pointCount, savePreviousData }) => {
const [dataParams, setDataParams] = useState({data: {datasets:[]}, yStart, })
if (!pointCount || !Number.isInteger(pointCount))
pointCount = 2048
useEffect(()=>{
if((lineGroup.length === 0) || (data.length === 0)) return