Browse Source

Fix bug where ingredient still shows after being removed if you sort

Lee Morgan 6 năm trước cách đây
mục cha
commit
fc64c2844f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      views/inventoryPage/inventory.js

+ 1 - 1
views/inventoryPage/inventory.js

@@ -190,7 +190,7 @@ window.inventoryObj = {
                             }
                         }
 
-                        row.parentNode.removeChild(row);
+                        this.filter();
 
                         banner.createNotification("The ingredient has been removed from your inventory");
                     }