diff --git a/templates/custom/portfolio.tmpl b/templates/custom/portfolio.tmpl index 9785076..b812661 100644 --- a/templates/custom/portfolio.tmpl +++ b/templates/custom/portfolio.tmpl @@ -239,6 +239,8 @@ document.addEventListener('DOMContentLoaded', async () => { const orgSelect = document.getElementById('org-select'); const filterButtons = document.querySelectorAll('#portfolio-controls .ui.buttons .button'); + const HIDDEN_ORGS = ['templates']; + let allItems = []; let filteredItems = []; let currentMainFilter = 'all'; @@ -287,7 +289,7 @@ document.addEventListener('DOMContentLoaded', async () => { const orgsRes = await fetch(`${API_BASE}/orgs`); if (!orgsRes.ok) throw new Error('failed to fetch orgs'); - const orgs = await orgsRes.json(); + const orgs = (await orgsRes.json()).filter(org => !HIDDEN_ORGS.includes(org.username.toLowerCase())); const items = []; const orgNames = new Set();