This commit is contained in:
u80864958
2025-10-21 15:20:48 +02:00
parent f08437589a
commit 14df3db8d1

View File

@@ -2,10 +2,12 @@
import { page } from '$app/stores';
import { getArtefact } from '$lib/artefact.remote';
import Artefact from '$lib/components/Artefact.svelte';
let artefact: Artefact | undefined = $state(undefined);
let uuid = $derived($page.params.artefact_uuid);
let artefact: undefined | Artefact = $state(undefined);
$effect(() => {
getArtefact($page.params.artefact_uuid ?? '').then((a) => (artefact = a));
getArtefact(uuid ?? '').then((a) => (artefact = a));
});
</script>