Skip to content

Commit e15e6ad

Browse files
compwronCopilot
andauthored
Update app/javascript/src/dashboard.js
Co-authored-by: Copilot <[email protected]>
1 parent a5d7474 commit e15e6ad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/javascript/src/dashboard.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ const defineCaseContactsTable = function () {
4848
orderable: false,
4949
render: (data) => {
5050
if (!data || !data.id) return ''
51-
return `<a href="/casa_cases/${data.id}">${data.case_number}</a>`
51+
const a = document.createElement('a');
52+
a.href = `/casa_cases/${data.id}`;
53+
a.textContent = data.case_number;
54+
return a.outerHTML;
5255
}
5356
},
5457
{ // Relationship (Contact Types) column (index 4)

0 commit comments

Comments
 (0)