瀏覽代碼

Update analytics.js to reflect new bottle data structure.

Lee Morgan 5 年之前
父節點
當前提交
5b66dbba34
共有 2 個文件被更改,包括 0 次插入6 次删除
  1. 0 3
      views/dashboardPage/bundle.js
  2. 0 3
      views/dashboardPage/js/strands/analytics.js

+ 0 - 3
views/dashboardPage/bundle.js

@@ -3140,9 +3140,6 @@ let analytics = {
         }
 
         let yaxis = `QUANTITY (${this.ingredient.unit.toUpperCase()})`;
-        if(this.ingredient.specialUnit === "bottle"){
-            yaxis = `QUANTITY (${this.ingredient.specialUnit.toUpperCase()})`
-        }
 
         const layout = {
             title: this.ingredient.name.toUpperCase(),

+ 0 - 3
views/dashboardPage/js/strands/analytics.js

@@ -152,9 +152,6 @@ let analytics = {
         }
 
         let yaxis = `QUANTITY (${this.ingredient.unit.toUpperCase()})`;
-        if(this.ingredient.specialUnit === "bottle"){
-            yaxis = `QUANTITY (${this.ingredient.specialUnit.toUpperCase()})`
-        }
 
         const layout = {
             title: this.ingredient.name.toUpperCase(),