Explorar el Código

Nicer Region score formatting in report

jmacura hace 5 años
padre
commit
1c4691d5a7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      views/nuts.pug

+ 1 - 1
views/nuts.pug

@@ -43,7 +43,7 @@ html
           tr
             td= ds.Description
             td= ds.Factor
-            td= region[ds.Factor][ds.Name]
+            td= region[ds.Factor][ds.Name] !== undefined ? +(region[ds.Factor][ds.Name] * 100).toFixed(2) + ' %' : '--'
     
     script.
       let c = !{JSON.stringify(region.metadata.centroid)};