Commit 105a01c9 authored by Phil Hughes's avatar Phil Hughes

Fixes the diffs rendered output being cached in correctly

The rendered output of the diff was getting rendered
and then cached by our safe HTML directive incorrectly.
This fixes that by always adding a key to the part where
safe HTML renders so that it will always re-render
the output.
parent 043f967c
......@@ -242,6 +242,7 @@ export default {
class="line-coverage"
></td>
<td
:key="line.line_code"
v-safe-html="line.rich_text"
:class="[
line.type,
......
......@@ -341,6 +341,7 @@ export default {
<td :class="parallelViewLeftLineType" class="line-coverage left-side"></td>
<td
:id="line.left.line_code"
:key="line.left.line_code"
v-safe-html="line.left.rich_text"
:class="parallelViewLeftLineType"
class="line_content with-coverage parallel left-side"
......@@ -401,6 +402,7 @@ export default {
></td>
<td
:id="line.right.line_code"
:key="line.right.rich_text"
v-safe-html="line.right.rich_text"
:class="[
line.right.type,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment