fix error when sorting users after edition
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				delpoy / build-and-deploy (push) Successful in 52s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	delpoy / build-and-deploy (push) Successful in 52s
				
			This commit is contained in:
		| @@ -17,7 +17,7 @@ | ||||
| 	let currentPageUsersRequest: Promise<void> = new Promise((resolve) => resolve()); | ||||
| 	let usersPerPage = 50; | ||||
| 	let userPage = 0; | ||||
| 	let userFilter = { name: null, edition: null }; | ||||
| 	let userFilter = { name: null, playertype: null }; | ||||
| 	let userTableContainerElement: HTMLDivElement; | ||||
|  | ||||
| 	function fetchPageUsers(page: number) { | ||||
|   | ||||
| @@ -16,7 +16,7 @@ export const POST = (async ({ request, cookies }) => { | ||||
| 		from: number | null; | ||||
|  | ||||
| 		name: string | null; | ||||
| 		edition: 'java' | 'bedrock' | 'cracked' | null; | ||||
| 		playertype: 'java' | 'bedrock' | 'cracked' | null; | ||||
|  | ||||
| 		search: string | null; | ||||
| 		slim: boolean | null; | ||||
| @@ -39,8 +39,8 @@ export const POST = (async ({ request, cookies }) => { | ||||
| 			} | ||||
| 		}); | ||||
| 	} | ||||
| 	if (data.edition) { | ||||
| 		usersFindOptions.edition = data.edition; | ||||
| 	if (data.playertype) { | ||||
| 		usersFindOptions.playertype = data.playertype; | ||||
| 	} | ||||
| 	const users = await User.findAll({ | ||||
| 		where: usersFindOptions, | ||||
|   | ||||
| @@ -4,7 +4,7 @@ | ||||
|  | ||||
| 	export let userFilter = { | ||||
| 		name: null, | ||||
| 		edition: null | ||||
| 		playertype: null | ||||
| 	}; | ||||
| </script> | ||||
|  | ||||
| @@ -15,7 +15,7 @@ | ||||
| 		</Input> | ||||
| 	</div> | ||||
| 	<div class="w-1/6"> | ||||
| 		<Select label="Edition" size="sm" bind:value={userFilter.edition}> | ||||
| 		<Select label="Edition" size="sm" bind:value={userFilter.playertype}> | ||||
| 			<option value={null}>Alle</option> | ||||
| 			<option value="java">Java</option> | ||||
| 			<option value="beckdrock">Bedrock</option> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user