Skip to content
Commits on Source (2)
{
"name": "i4-js-commons",
"version": "3.9.21",
"version": "3.9.22",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
{
"name": "i4-js-commons",
"version": "3.9.21",
"version": "3.9.22",
"description": "Just a load of common stuff for i4 front-ends and some probably usable in back-end as well",
"dependencies": {
"@material-ui/core": "^4.8.0",
......
......@@ -255,7 +255,7 @@ export const fromChannels = async ({
/* eslint-disable no-param-reassign */
counts = counts.length
? counts
: histories.map(({ path, data: [point = {}] }) => {
: histories.map(({ path, data: [point = {}] = [] }) => {
const value = dataInPoint(path, point);
return Array.isArray(value) ? value.length : 1;
}); // -> [1, 2, 1, 1]
......