-Updated editInventory to delete the inventory if the quantity of the inventory is 0