fix empty array - was checking index against empty array, so condition was never met

This commit is contained in:
Nathan Woulfe
2019-07-13 13:45:13 +10:00
parent 3c2a92d3b6
commit 1a7251909c

View File

@@ -112,7 +112,7 @@
for (let [key, value] of Object.entries(data)) {
const index = vm.logTypeLabels.findIndex(x => key.startsWith(x));
if (index > -1 && index < vm.logTypeData.length) {
if (index > -1) {
vm.logTypeData[index] = value;
}
}