This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/stores';
|
||||
import { getArtefact } from '$lib/artefact.remote';
|
||||
import Artefact from '$lib/components/Artefact.svelte';
|
||||
let artefact: Artefact | undefined = $state(undefined);
|
||||
|
||||
$effect(() => {
|
||||
getArtefact($page.params.artefact_uuid ?? '').then((a) => (artefact = a));
|
||||
});
|
||||
</script>
|
||||
|
||||
{#if artefact}
|
||||
<Artefact {artefact} />
|
||||
{/if}
|
||||
Reference in New Issue
Block a user