= communityCatalogDatasets.map(dataset => ({
                    ...dataset,
                    catalog_type: 'community'
                }));

                // Combine datasets
                datasets = [...mainCatalogDatasets, ...communityCatalogDatasets];

                initializeData();
            } else {
                fetchDatasets();
            }

            function fetchDatasets() {
                loadingSpinner.style.display = 'block';

                // Fetch both catalogs
          