Преглед изворни кода

Update the state for inventory check submission.

Lee Morgan пре 5 година
родитељ
комит
7fb5ffa9d4
2 измењених фајлова са 4 додато и 4 уклоњено
  1. 2 2
      views/dashboardPage/bundle.js
  2. 2 2
      views/dashboardPage/js/classes/Merchant.js

+ 2 - 2
views/dashboardPage/bundle.js

@@ -319,8 +319,8 @@ class Merchant{
 
         this._ingredients.splice(index, 1);
 
-        home.isPopulated = false;
-        ingredients.isPopulated = false;
+        home.drawInventoryCheckCard();
+        ingredients.populateByProperty();
     }
 
     getIngredient(id){

+ 2 - 2
views/dashboardPage/js/classes/Merchant.js

@@ -203,8 +203,8 @@ class Merchant{
 
         this._ingredients.splice(index, 1);
 
-        home.isPopulated = false;
-        ingredients.isPopulated = false;
+        home.drawInventoryCheckCard();
+        ingredients.populateByProperty();
     }
 
     getIngredient(id){