Skip to content

Commit 42bb289

Browse files
committed
Nitpicks
1 parent 5e08bf6 commit 42bb289

File tree

1 file changed

+3
-2
lines changed
  • src/routes/(authenticated)/assignment-assistant/[projectId]/sighting

1 file changed

+3
-2
lines changed

src/routes/(authenticated)/assignment-assistant/[projectId]/sighting/+page.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import { graphql } from '$houdini';
99
import SchoolFilter from './SchoolFilter.svelte';
1010
import codenmz from '$lib/services/codenamize';
11+
import { getConference, loadProjects, getApplications } from '../appData.svelte';
1112
1213
let { data }: PageProps = $props();
1314
@@ -114,11 +115,11 @@
114115
{#each getApplications() as application, index}
115116
{@const inCurrentPage = index >= (page - 1) * pageSize && index < page * pageSize}
116117
{@const filterOrSearchActive = filterActive || searchActive}
117-
{@const inFilter = filterActive && $params.filter.includes(application.school ?? '')}
118+
{@const inFilter = filterActive && $params.filter?.includes(application.school ?? '')}
118119
{@const inSearch =
119120
searchActive &&
120121
(codenmz(application.id).toLowerCase().includes($params.search.toLowerCase()) ||
121-
application.school?.toLowerCase().includes($params.search.toLowerCase()))}
122+
application.school?.toLowerCase()?.includes($params.search.toLowerCase()))}
122123
{#if (!filterOrSearchActive && inCurrentPage) || inFilter || inSearch}
123124
<Application {application} startConference={conference?.startConference ?? new Date()} />
124125
{/if}

0 commit comments

Comments
 (0)