fix: pdf
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user