Pārlūkot izejas kodu

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

Lee Morgan 6 gadi atpakaļ
vecāks
revīzija
fc64c2844f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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");
                     }