diff --git a/packages/astro/src/runtime/client/dev-toolbar/apps/audit/index.ts b/packages/astro/src/runtime/client/dev-toolbar/apps/audit/index.ts index ccc273f4dc..69c752dbe0 100644 --- a/packages/astro/src/runtime/client/dev-toolbar/apps/audit/index.ts +++ b/packages/astro/src/runtime/client/dev-toolbar/apps/audit/index.ts @@ -123,11 +123,11 @@ export default { async function lint() { // Clear the previous audits if (audits.length > 0) { - audits = []; audits.forEach((audit) => { audit.highlight?.remove(); audit.card?.remove(); }); + audits = []; hasCreatedUI = false; } diff --git a/packages/astro/src/runtime/client/dev-toolbar/apps/audit/ui/audit-list-window.ts b/packages/astro/src/runtime/client/dev-toolbar/apps/audit/ui/audit-list-window.ts index c1c2770aef..86fa7b7435 100644 --- a/packages/astro/src/runtime/client/dev-toolbar/apps/audit/ui/audit-list-window.ts +++ b/packages/astro/src/runtime/client/dev-toolbar/apps/audit/ui/audit-list-window.ts @@ -5,7 +5,7 @@ import { getAuditCategory, rulesCategories } from '../rules/index.js'; export function createRoundedBadge(icon: Icon) { const badge = document.createElement('astro-dev-toolbar-badge'); - badge.shadowRoot.innerHTML = ` + badge.shadowRoot.innerHTML += `