File tree Expand file tree Collapse file tree
lib/peek_app_sdk/ui/odyssey Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,14 +13,8 @@ defmodule PeekAppSDK.UI.Odyssey.OdysseyActivityPicker do
1313 use Phoenix.LiveComponent
1414 use Phoenix.Component
1515
16- @ required_assigns ~w( field install_id) a
17-
1816 @ impl true
1917 def mount ( socket ) do
20- socket =
21- socket
22- |> assign ( selection: nil )
23-
2418 { :ok , socket }
2519 end
2620
@@ -59,7 +53,7 @@ defmodule PeekAppSDK.UI.Odyssey.OdysseyActivityPicker do
5953 ~H"""
6054 < div phx-hook = "OdysseyActivityPicker " id = { "#{ @ id } _hook" } >
6155 <!-- Hidden input for form value -->
62- < input type = "hidden " name = { @ field . name } value = { @ selection } />
56+ < input type = "hidden " name = { @ field . name } value = { @ field . value } />
6357
6458 <!-- Odyssey product picker will be rendered here -->
6559 < div >
@@ -68,7 +62,7 @@ defmodule PeekAppSDK.UI.Odyssey.OdysseyActivityPicker do
6862 phx-update = "ignore "
6963 title = "Activity Picker "
7064 phx-target = { @ myself }
71- ids = { @ selection }
65+ ids = { @ field . value }
7266 products = { Jason . encode! ( @ products ) }
7367 >
7468 </ odyssey-product-picker >
You can’t perform that action at this time.
0 commit comments