Skip to content

Commit 2f0c3e9

Browse files
committed
fix javascript error
error `Invalid value for <g> attribute transform="translate(NaN,10)scale(NaN)"`
1 parent fdf0ca5 commit 2f0c3e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ d3.xhr("index.php?r=rbac/default/items").get(function (error, XMLHttpRequest) {
138138
var maxX = d3.max(xArray);
139139

140140
var scaleMin = Math.abs(w / (maxX - minX + 2 * rectW));
141-
if (scaleMin > 1) {
141+
if (scaleMin > 1 || isNaN(scaleMin)) {
142142
scaleMin = 1;
143143
}
144144
var startX = -scaleMin;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy