luci-app-statistics: fix datasource selection in graph rendering

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2020-02-19 14:28:28 +01:00
parent d8b2e0a95e
commit eec30a2b7d

View file

@ -568,7 +568,7 @@ return L.Class.extend({
noarea: dopts.noarea || false,
title: dopts.title || null,
weight: dopts.weight || (dopts.negweight ? -+data_instances[j] : null) || (dopts.posweight ? +data_instances[j] : null) || null,
ds: data_sources[j],
ds: data_sources[k],
type: data_types[i],
instance: data_instances[j],
index: _sources.length + 1,