Explorar o código

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

Lee Morgan %!s(int64=6) %!d(string=hai) anos
pai
achega
fc64c2844f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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");
                     }