using the selection filter below shows only 50 results instead of 450, do you know what is wrong?
$w . onReady ( async () => {
$w ( "#dropdown5" ). options = **await** poppulateDropdown ( "Klienci" );
});
export function poppulateDropdown ( collectionName ) {
let allItems = ;
return wixData . query ( collectionName )
. ascending ( “nazwaFirmy” )
. find ()
. then (( results ) =>{
if ( results . totalCount > 0 ) {
let items = results . items ;
items . forEach (( item ) =>{
let oneItem = {
label : item . nazwaFirmy ,
value : item . nip
}
allItems . push ( oneItem );
})
return allItems ;
}
return null ;
})
}