feat(templates): hide templates org from portfolio
This commit is contained in:
1 parent
5ca0249911
commit
93975451ea
1 file changed
+3
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user