From 841e24f508478149f6a47126ff6518251a3a6178 Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Thu, 24 Oct 2024 18:20:06 +0100 Subject: [PATCH] Update tables.js --- apps/home/static/home/js/tables.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/apps/home/static/home/js/tables.js b/apps/home/static/home/js/tables.js index 087e41b..0560508 100644 --- a/apps/home/static/home/js/tables.js +++ b/apps/home/static/home/js/tables.js @@ -543,11 +543,7 @@ function renderArrayDropdownColumn(data, icon, headerText) { return $dropdown.prop("outerHTML"); } -function renderHexColourColumn(data, type, row) { - if (!row.is_embed) { - return ""; - } - +const renderHexColourColumn = data => { const hexWithHashtag = `#${data}`.toUpperCase(); let icon = $("
"); @@ -565,11 +561,7 @@ function renderMutatorColumn(data) { return $(`${data.name}`).prop("outerHTML"); } -const renderLinkToStyleColumn = style => { - if (!style.is_embed) { - return ""; - } - +const renderLinkToStyleColumn = style => { const hexWithHashtag = `#${style.colour}`.toUpperCase(); let icon = $("
");