forked from shibao/cannery
improve Ammo.list_packs
This commit is contained in:
@ -149,7 +149,7 @@ defmodule CanneryWeb.PackLive.Index do
|
||||
# get total number of packs to determine whether to display onboarding
|
||||
# prompts
|
||||
packs_count = Ammo.get_packs_count!(current_user, true)
|
||||
packs = Ammo.list_packs(search, class, current_user, show_used)
|
||||
packs = Ammo.list_packs(current_user, search: search, class: class, show_used: show_used)
|
||||
types_count = Ammo.get_types_count!(current_user)
|
||||
containers_count = Containers.get_containers_count!(current_user)
|
||||
|
||||
|
Reference in New Issue
Block a user