소스 검색

Fix bug: ingredient updating did not show immediately on frontend.

Lee Morgan 5 년 전
부모
커밋
0ebf4d53bf
2개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      views/dashboardPage/bundle.js
  2. 4 0
      views/dashboardPage/js/classes/Merchant.js

+ 4 - 0
views/dashboardPage/bundle.js

@@ -168,6 +168,10 @@ class MerchantIngredient{
         }
     }
 
+    set quantity(quantity){
+        this._quantity = quantity;
+    }
+
     updateQuantity(quantity){
         this._quantity += this.convertToBase(quantity);
     }

+ 4 - 0
views/dashboardPage/js/classes/Merchant.js

@@ -41,6 +41,10 @@ class MerchantIngredient{
         }
     }
 
+    set quantity(quantity){
+        this._quantity = quantity;
+    }
+
     updateQuantity(quantity){
         this._quantity += this.convertToBase(quantity);
     }