mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: adjust page limit normalization (#5672)
This commit is contained in:
		
							parent
							
								
									3b635132f9
								
							
						
					
					
						commit
						d0facc7101
					
				@ -105,7 +105,7 @@ export default class FeatureSearchController extends Controller {
 | 
			
		||||
                        ['enabled', 'disabled'].includes(tag[1]),
 | 
			
		||||
                );
 | 
			
		||||
            const normalizedLimit =
 | 
			
		||||
                Number(limit) > 0 && Number(limit) <= 50 ? Number(limit) : 100;
 | 
			
		||||
                Number(limit) > 0 && Number(limit) <= 100 ? Number(limit) : 25;
 | 
			
		||||
            const normalizedOffset = Number(offset) > 0 ? Number(offset) : 0;
 | 
			
		||||
            const normalizedSortBy: string = sortBy ? sortBy : 'createdAt';
 | 
			
		||||
            const normalizedSortOrder =
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user