Skip to content

Commit 39c0722

Browse files
committed
fix: markdown bug
1 parent 97be84f commit 39c0722

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

valentine/lib/valentine_web/live/workspace_live/components/assumption_component.ex

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ defmodule ValentineWeb.WorkspaceLive.Components.AssumptionComponent do
106106
<ValentineWeb.WorkspaceLive.Components.MarkdownComponent.render text={
107107
@assumption.comments
108108
} />
109+
<input type="hidden" name="comments" value={@assumption.comments} />
109110
<% end %>
110111
<.button is_primary class="mt-2" type="submit">{gettext("Save")}</.button>
111112
</form>

valentine/lib/valentine_web/live/workspace_live/components/mitigation_component.ex

+1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ defmodule ValentineWeb.WorkspaceLive.Components.MitigationComponent do
133133
<ValentineWeb.WorkspaceLive.Components.MarkdownComponent.render text={
134134
@mitigation.comments
135135
} />
136+
<input type="hidden" name="comments" value={@mitigation.comments} />
136137
<% end %>
137138
<.button is_primary class="mt-2" type="submit">{gettext("Save")}</.button>
138139
</form>

valentine/lib/valentine_web/live/workspace_live/components/threat_component.ex

+1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ defmodule ValentineWeb.WorkspaceLive.Components.ThreatComponent do
105105
<ValentineWeb.WorkspaceLive.Components.MarkdownComponent.render text={
106106
@threat.comments
107107
} />
108+
<input type="hidden" name="comments" value={@threat.comments} />
108109
<% end %>
109110
<.button is_primary class="mt-2" type="submit">{gettext("Save")}</.button>
110111
</form>

0 commit comments

Comments
 (0)