Bugfix for listing divisions on index and submit pages
This commit is contained in:
		
							parent
							
								
									946316d4b5
								
							
						
					
					
						commit
						e231610fab
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -35,7 +35,7 @@ router.get('/index/dropdown', async function(req, res, next) {
 | 
			
		|||
            seasonsData = await seasons.retrieveAll();
 | 
			
		||||
            sportsData = await sports.retrieveAll();
 | 
			
		||||
            gendersData = await genders.retrieveBySport(latestGame.sportID);
 | 
			
		||||
            divisionsData = await divisions.retrieve(latestGame.sportID);
 | 
			
		||||
            divisionsData = await divisions.retrieve(latestGame.sportID, latestGame.gender);
 | 
			
		||||
            teamsData = await teams.retrieve(latestGame.sportID);
 | 
			
		||||
        } else {
 | 
			
		||||
            seasonsData = await seasons.retrieveAll();
 | 
			
		||||
| 
						 | 
				
			
			@ -102,7 +102,7 @@ router.get('/submit', async function(req, res, next) {
 | 
			
		|||
            seasonsData = await seasons.retrieveAll();
 | 
			
		||||
            sportsData = await sports.retrieveAll();
 | 
			
		||||
            gendersData = await genders.retrieveBySport(latestGame.sportID);
 | 
			
		||||
            divisionsData = await divisions.retrieve(latestGame.sportID);
 | 
			
		||||
            divisionsData = await divisions.retrieve(latestGame.sportID, latestGame.gender);
 | 
			
		||||
            teamsData = await teams.retrieve(latestGame.sportID);
 | 
			
		||||
        } else {
 | 
			
		||||
            seasonsData = await seasons.retrieveAll();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue