[FA-misc] Fix lint issues
All checks were successful
CI / build-backend (pull_request) Successful in 1m55s
CI / build-frontend (pull_request) Successful in 44s

This commit is contained in:
gamer147
2026-02-01 12:10:18 -05:00
parent 7ccc3ade9e
commit 4264051d11
2 changed files with 8 additions and 9 deletions

View File

@@ -37,13 +37,9 @@
const jobs = $derived((edges ?? []).map((edge) => edge.node).filter(Boolean));
// Extract unique job types from loaded data for the filter dropdown
const availableJobTypes = $derived(() => {
const types = new Set<string>();
for (const job of jobs) {
types.add(job.jobType);
}
return Array.from(types).sort();
});
const availableJobTypes = $derived(
[...new Set(jobs.map((job) => job.jobType))].sort()
);
async function fetchJobs(after: string | null = null) {
fetching = true;
@@ -123,7 +119,7 @@
<CardTitle>Filters</CardTitle>
</CardHeader>
<CardContent>
<JobFilters {filters} onFilterChange={handleFilterChange} availableJobTypes={availableJobTypes()} />
<JobFilters {filters} onFilterChange={handleFilterChange} availableJobTypes={availableJobTypes} />
</CardContent>
</Card>

View File

@@ -1,8 +1,11 @@
<script lang="ts">
import type { JobsQuery } from '$lib/graphql/__generated__/graphql';
import JobRow from './JobRow.svelte';
type JobNode = NonNullable<NonNullable<NonNullable<JobsQuery['jobs']>['edges']>[number]['node']>;
interface Props {
jobs: any[];
jobs: JobNode[];
}
let { jobs }: Props = $props();