From 20465804dadf30190c23099aeb3f38068d627494 Mon Sep 17 00:00:00 2001 From: Tyrone Tse Date: Fri, 23 Feb 2024 13:53:03 -0600 Subject: [PATCH] Updated function loadMoreData to get all the collections to populate them in the Collection dropdown list. Deleted the dropdownSelect.addEventListener('scroll' .... as the does not support it + dropdownSelect.addEventListener('scroll', async () => { if (dropdownSelect.scrollTop + dropdownSelect.clientHeight >= dropdownSelect.scrollHeight) { const moreData = await loadMoreData(page); @@ -68,12 +69,12 @@ async function createDropdown(addToExistingRadioDropboxContainer) { } } }); + */ + const page = 0; // Initial data loading const initialData = await loadMoreData(page); if (initialData.items.length > 0) { - //Update page to next load - page++; // Populate the options in the dropdown with the initial data initialData.items.forEach((collection) => {