Skip to content

Commit b6451af

Browse files
committed
update post filter section
1 parent f62ef3d commit b6451af

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

previewers/betatest/js/refiqdacore.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,11 @@ $("#filterby")
630630
codeConfig.columnDefs = [
631631
{
632632
"render": function(data, type, row) {
633-
return '<span class="colortile" style="display:block;background-color:' + data + '">&nbsp;</span>';
633+
// 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 + '">&nbsp;</span>';
636+
}
637+
return data;
634638
},
635639
"targets": 2
636640
},

0 commit comments

Comments
 (0)