Sfoglia il codice sorgente

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

Lee Morgan 6 anni fa
parent
commit
fc64c2844f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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");
                     }