diff --git a/src/routes/project/[projectId]/papers/+page.svelte b/src/routes/project/[projectId]/papers/+page.svelte index aefdd1e3..9d2193e5 100644 --- a/src/routes/project/[projectId]/papers/+page.svelte +++ b/src/routes/project/[projectId]/papers/+page.svelte @@ -15,6 +15,8 @@ import CriteriaSelect from "./CriteriaSelect.svelte"; import type { PapersByStage } from "./types"; import type { Paper } from "$lib/model/backend"; + import CirclePlus from "lucide-svelte/icons/circle-plus"; + import Trash from "lucide-svelte/icons/trash-2"; let { data } = $props(); const { @@ -51,14 +53,15 @@ criteria: string[]; } - let papersFilters = $state({ + const emptyFilters: PapersFilters = { stages: [], reviewers: [], publishers: [], years: [], decisions: [], criteria: [], - }); + }; + let papersFilters = $state(emptyFilters); $effect(() => { const filters = Object.assign({}, $state.snapshot(papersFilters)); @@ -88,12 +91,7 @@ {/if} - { - console.log($state.snapshot(papersFilters)); - }} - /> + {}} /> {#if showFilters}
@@ -112,6 +110,14 @@ {loadingCriteria} bind:selectedCriteria={papersFilters.criteria} /> +
{/if} @@ -139,7 +145,14 @@ }} /> {/each} - +