We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f62ef3d commit b6451afCopy full SHA for b6451af
1 file changed
previewers/betatest/js/refiqdacore.js
@@ -630,7 +630,11 @@ $("#filterby")
630
codeConfig.columnDefs = [
631
{
632
"render": function(data, type, row) {
633
- return '<span class="colortile" style="display:block;background-color:' + data + '"> </span>';
+ // Check if data is already HTML (to avoid double-rendering)
634
+ if (type === 'display' && typeof data === 'string' && !data.includes('<span')) {
635
+ return '<span class="colortile" style="display:block;background-color:' + data + '"> </span>';
636
+ }
637
+ return data;
638
},
639
"targets": 2
640
0 commit comments