From 9239b06478c7f3f657e5b7b0dcd616719a2ca6e6 Mon Sep 17 00:00:00 2001 From: jjstatman <38954859+jjstatman@users.noreply.github.com> Date: Tue, 20 Oct 2020 14:50:35 -0400 Subject: [PATCH] Bugfix for header update via websocket Changed the layer indexing so that it indexes off of the layer number rather than UUID --- js/sigplot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/sigplot.js b/js/sigplot.js index ff904f6..8fab048 100644 --- a/js/sigplot.js +++ b/js/sigplot.js @@ -2408,7 +2408,7 @@ plot.push(layer_n, data); } else if (typeof evt.data === "string") { var Gx = plot._Gx; - var hdr = Gx.lyr[layer_n].hcb; + var hdr = Gx.lyr[plot.get_lyrn(layer_n)].hcb; if (!hdr) { m.log.warning("Couldn't find header for layer " + layer_n); }