Skip to content

Commit 7509ee9

Browse files
authored
Fix deployment group tags being merged when editing settings (#2397)
Previously they were merged into a single string with no comma separation. Fixes #2393 https://github.com/user-attachments/assets/2caee870-bfdb-40d2-b08e-0998509e8b51
1 parent 4722a60 commit 7509ee9

File tree

1 file changed

+2
-1
lines changed
  • lib/nerves_hub_web/components/deployment_group_page

1 file changed

+2
-1
lines changed

lib/nerves_hub_web/components/deployment_group_page/settings.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ defmodule NervesHubWeb.Components.DeploymentGroupPage.Settings do
88
alias NervesHub.Firmwares.Firmware
99
alias NervesHub.ManagedDeployments
1010
alias NervesHub.ManagedDeployments.DeploymentGroup
11+
alias NervesHubWeb.Components.Utils
1112

1213
@impl Phoenix.LiveComponent
1314
def update(assigns, socket) do
@@ -94,7 +95,7 @@ defmodule NervesHubWeb.Components.DeploymentGroupPage.Settings do
9495
</div>
9596
<.inputs_for :let={conditions} field={@form[:conditions]}>
9697
<div class="w-1/2">
97-
<.input field={conditions[:tags]} label="Tag(s) distributed to" placeholder="eg. batch-123" />
98+
<.input field={conditions[:tags]} value={Utils.tags_to_string(conditions[:tags])} label="Tag(s) distributed to" placeholder="eg. batch-123" />
9899
</div>
99100
100101
<div class="w-1/2">

0 commit comments

Comments
 (0)