add ammo type live test for empty ammo groups
This commit is contained in:
		| @@ -95,11 +95,12 @@ defmodule CanneryWeb.ViewHelpers do | ||||
|     ~H""" | ||||
|     <label for={@id} class="inline-flex relative items-center cursor-pointer"> | ||||
|       <input | ||||
|         id={@id} | ||||
|         type="checkbox" | ||||
|         value={@value} | ||||
|         checked={@value} | ||||
|         id={@id} | ||||
|         class="sr-only peer" | ||||
|         data-qa={@id} | ||||
|         { | ||||
|           if assigns |> Map.has_key?(:target), | ||||
|             do: %{"phx-click" => @action, "phx-value-value" => @value, "phx-target" => @target}, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user