ScottLogic / StockFlux

StockFlux is a desktop application developed by Scott Logic that uses the OpenFin HTML5 container together with React, Redux, ES2015 and d3fc
MIT License
124 stars 36 forks source link

Watchlist - card failing to load #1396

Open gsmith-scottlogic opened 4 years ago

gsmith-scottlogic commented 4 years ago

For symbol ZNWAA, the card fails to load properly when added to the watchlist. Additionally - the percentage change is shown as '(NaN%)' The card constantly displays the throbber and when the card is dragged to display the chart, the following error is displayed: × ←→1 of 5 errors on the page TypeError: n.getTime is not a function Array. C:/dev/StockFlux/packages/stockflux-bitflux/dist/bitflux.js:19613 19610 | }, 19611 | filterDataInDateRange: function filterDataInDateRange(n, t) { 19612 | var e = o.a.min(n, function (n) {

19613 | return n.getTime(); | ^ 19614 | }), 19615 | r = o.a.max(n, function (n) { 19616 | return n.getTime(); View compiled i.min C:/dev/StockFlux/packages/stockflux-bitflux/dist/bitflux.js:161 158 | } 159 | } else { 160 | for (; ++o < i;) { 161 | if (null != (r = t.call(n, n[o], o)) && r >= r) { | ^ 162 | e = r; 163 | break; 164 | } View compiled filterDataInDateRange C:/dev/StockFlux/packages/stockflux-bitflux/dist/bitflux.js:19612 19609 | return c[1].getTime() > o[1].getTime() ? l = -n.distance(o[1], c[1]) : c[0].getTime() < o[0].getTime() && (l = n.distance(c[0], o[0])), [n.offset(c[0], l), n.offset(c[1], l)]; 19610 | }, 19611 | filterDataInDateRange: function filterDataInDateRange(n, t) { 19612 | var e = o.a.min(n, function (n) { | ^ 19613 | return n.getTime(); 19614 | }), 19615 | r = o.a.max(n, function (n) { View compiled Array.j C:/dev/StockFlux/packages/stockflux-bitflux/dist/bitflux.js:19806 19803 | height: t 19804 | }), g.domain(a.a.util.extent().fields(["date"])(r)), s.domain(a.a.util.extent().fields(["low", "high"]).pad(u)(r)), e.select("mask").datum(r).call(w); 19805 | }(e, o), p.domain(r.viewDomain); 19806 | var i = T.domain.filterDataInDateRange(a.a.util.extent().fields(["date"])(o), o), | ^ 19807 | I = a.a.util.extent().fields(["low", "high"]).pad(u)(i); 19808 | d.xDomain(a.a.util.extent().fields(["date"])(o)).yDomain(I).xTicks(N(n, 100, 2)), x.on("brush", function () { 19809 | var n = b(x); View compiled Array.K.call C:/dev/StockFlux/packages/stockflux-bitflux/dist/bitflux.js:1118 1115 | }); 1116 | }, K.call = function (n) { 1117 | var t = u(arguments); 1118 | return n.apply(t[0] = this, t), this; | ^ 1119 | }, K.empty = function () { 1120 | return !this.node(); 1121 | }, K.node = function () { View compiled HTMLDivElement. C:/dev/StockFlux/packages/stockflux-bitflux/dist/bitflux.js:20103 20100 | 20101 | function u(n) { 20102 | n.each(function (o) { 20103 | n.select("#legend").datum(o.legend).call(t), n.select("#navbar-container").datum(o.nav).call(e), n.select("#primary-container").datum(o.primary).call(r), n.select("#secondaries-container").datum(o.secondary).call(i), n.select("#x-axis-container").datum(o.xAxis).call(a); | ^ 20104 | }); 20105 | } 20106 | View compiled (anonymous function) C:/dev/StockFlux/packages/stockflux-bitflux/dist/bitflux.js:1114 1111 | return this.order(); 1112 | }, K.each = function (n) { 1113 | return pn(this, function (t, e, r) { 1114 | n.call(t, t.data, e, r); | ^ 1115 | }); 1116 | }, K.call = function (n) { 1117 | var t = u(arguments); View compiled pn C:/dev/StockFlux/packages/stockflux-bitflux/dist/bitflux.js:883 880 | function pn(n, t) { 881 | for (var e = 0, r = n.length; e < r; e++) { 882 | for (var o, i = n[e], a = 0, u = i.length; a < u; a++) { 883 | (o = i[a]) && t(o, a, e); | ^ 884 | } 885 | } 886 | View compiled Array.K.each C:/dev/StockFlux/packages/stockflux-bitflux/dist/bitflux.js:1113 1110 | 1111 | return this.order(); 1112 | }, K.each = function (n) { 1113 | return pn(this, function (t, e, r) { | ^ 1114 | n.call(t, t.data, e, r); 1115 | }); 1116 | }, K.call = function (n) { View compiled Array.u C:/dev/StockFlux/packages/stockflux-bitflux/dist/bitflux.js:20102 20099 | a = m(); 20100 | 20101 | function u(n) { 20102 | n.each(function (o) { | ^ 20103 | n.select("#legend").datum(o.legend).call(t), n.select("#navbar-container").datum(o.nav).call(e), n.select("#primary-container").datum(o.primary).call(r), n.select("#secondaries-container").datum(o.secondary).call(i), n.select("#x-axis-container").datum(o.xAxis).call(a); 20104 | }); 20105 | } View compiled Array.K.call C:/dev/StockFlux/packages/stockflux-bitflux/dist/bitflux.js:1118 1115 | }); 1116 | }, K.call = function (n) { 1117 | var t = u(arguments); 1118 | return n.apply(t[0] = this, t), this; | ^ 1119 | }, K.empty = function () { 1120 | return !this.node(); 1121 | }, K.node = function () { View compiled (anonymous function) C:/dev/StockFlux/packages/stockflux-bitflux/dist/bitflux.js:21213 21210 | p = .2, 21211 | I = !0; 21212 | var h = a.a.util.render(function () { 21213 | I && (I = !1), x && n.suspendLayout(!1), n.chartsAndOverlay.datum(s.charts).call(f), n.app.select("#navbar-reset").datum(s.navReset).call(i), n.app.select(".head-menu").datum(s.headMenu).call(r), n.app.selectAll(".selectors").datum(s.selectors).call(u), n.app.select("#notifications").datum(s.notificationMessages).call(M), n.overlay.datum(s.overlay).call(e), x && (n.suspendLayout(!0), x = !1); | ^ 21214 | }), 21215 | x = !0; 21216 | View compiled (anonymous function) C:/dev/StockFlux/packages/stockflux-bitflux/dist/bitflux.js:14034 14031 | var t = null; 14032 | return function () { 14033 | null == t && (t = requestAnimationFrame(function () { 14034 | t = null, n(); | ^ 14035 | })); 14036 | }; 14037 | }, View compiled This screen is visible only in development. It will not appear if the app crashes in production. Open your browser’s developer console to further inspect this error.

gsmith-scottlogic commented 4 years ago

Issue addressed and retested - satis