From 3bec7cfd7cf7cec2e2a52880042917cbe2c720ad Mon Sep 17 00:00:00 2001 From: kdeterme Date: Fri, 18 Sep 2026 14:12:21 +0200 Subject: [PATCH] fix: remove redundant badge element lookup in edit inspection modal --- .../inspections/components/edit_inspection_modal.html | 3 --- 1 file changed, 3 deletions(-) diff --git a/loko/inspections/templates/inspections/components/edit_inspection_modal.html b/loko/inspections/templates/inspections/components/edit_inspection_modal.html index c86a801..27097df 100644 --- a/loko/inspections/templates/inspections/components/edit_inspection_modal.html +++ b/loko/inspections/templates/inspections/components/edit_inspection_modal.html @@ -885,9 +885,6 @@ document.addEventListener('DOMContentLoaded', function() { badgeText = '{% translate "Suggéré : Non conforme" %}'; badgeClass = 'bg-warning-subtle text-warning-emphasis border border-warning-subtle'; icon = 'bi-exclamation-circle-fill'; - } - - const badge = document.getElementById('editHotboxRecommendedBadge'); if (badge) { badge.className = `badge ${badgeClass} px-2.5 py-1 rounded-pill small`; badge.innerHTML = `${badgeText}`;