Fix: Remove invalid sort options and validate sort fields

This commit is contained in:
gpt-engineer-app[bot]
2025-10-13 01:28:49 +00:00
parent 3b568712d9
commit ad096b05c6
2 changed files with 9 additions and 8 deletions

View File

@@ -15,7 +15,6 @@ interface QueueSortControlsProps {
const getSortFieldLabel = (field: SortField): string => {
switch (field) {
case 'created_at': return 'Date Created';
case 'username': return 'Submitter';
case 'submission_type': return 'Type';
case 'status': return 'Status';
case 'escalated': return 'Escalated';
@@ -58,7 +57,6 @@ export const QueueSortControls = ({
</SelectTrigger>
<SelectContent>
<SelectItem value="created_at">{getSortFieldLabel('created_at')}</SelectItem>
<SelectItem value="username">{getSortFieldLabel('username')}</SelectItem>
<SelectItem value="submission_type">{getSortFieldLabel('submission_type')}</SelectItem>
<SelectItem value="status">{getSortFieldLabel('status')}</SelectItem>
<SelectItem value="escalated">{getSortFieldLabel('escalated')}</SelectItem>