Read research ID from SvelteKit route params

This commit is contained in:
faligam
2026-09-06 17:48:02 +02:00
parent 5022ef4fd7
commit d5c270c8bc

View File

@@ -1,5 +1,6 @@
<script lang="ts">
import { onDestroy, onMount } from 'svelte';
import { page } from '$app/stores';
import { getResearchStatus, getResearchDetail, stopResearch, deleteResearch } from '$lib/research-api';
import { getApiKey } from '$lib/auth';
import { pollingInterval, pollingActive } from '$lib/stores';
@@ -16,7 +17,7 @@
import { errorBanners } from '$lib/components/ErrorBannerStore';
import type { ErrorType } from '$lib/components/ErrorBannerStore';
export let researchId: string;
$: researchId = $page.params.id;
let detail: ResearchDetail | null = null;
let statusText = '';