timgremore
commited on
Commit
•
c3b9be6
1
Parent(s):
db17066
fix: Add required callback to state update
Browse files
lib/medicode_web/components/code_select.ex
CHANGED
@@ -125,7 +125,8 @@ defmodule MedicodeWeb.Components.CodeSelect do
|
|
125 |
chunk_id: socket.assigns.chunk.id,
|
126 |
current_user: socket.assigns.current_user,
|
127 |
on_feedback: &MedicodeWeb.TranscriptionsLive.Show.on_feedback/1,
|
128 |
-
on_remove_code: &MedicodeWeb.TranscriptionsLive.Show.on_remove_code/1
|
|
|
129 |
)
|
130 |
|
131 |
Phoenix.PubSub.broadcast(
|
|
|
125 |
chunk_id: socket.assigns.chunk.id,
|
126 |
current_user: socket.assigns.current_user,
|
127 |
on_feedback: &MedicodeWeb.TranscriptionsLive.Show.on_feedback/1,
|
128 |
+
on_remove_code: &MedicodeWeb.TranscriptionsLive.Show.on_remove_code/1,
|
129 |
+
on_finalize_code: &MedicodeWeb.TranscriptionsLive.Show.on_finalize_code/1
|
130 |
)
|
131 |
|
132 |
Phoenix.PubSub.broadcast(
|
storybook/components/transcription_text_component.story.exs
CHANGED
@@ -50,7 +50,8 @@ defmodule MedicodeWeb.Storybook.TranscriptionTextComponent do
|
|
50 |
text:
|
51 |
"This 55-year-old man with known coronary artery disease comes for a follow-up visit today. ",
|
52 |
on_feedback: fn -> nil end,
|
53 |
-
on_remove_code: fn -> nil end
|
|
|
54 |
}
|
55 |
}
|
56 |
]
|
|
|
50 |
text:
|
51 |
"This 55-year-old man with known coronary artery disease comes for a follow-up visit today. ",
|
52 |
on_feedback: fn -> nil end,
|
53 |
+
on_remove_code: fn -> nil end,
|
54 |
+
on_finalize_code: fn -> nil end
|
55 |
}
|
56 |
}
|
57 |
]
|