Skip to content

Commit

Permalink
Hotfix/navigation base page title (#1259)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene authored Jan 3, 2025
2 parents 4b59814 + 2574487 commit 32e2f4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<script lang="ts">
import Article from '$lib/components/DataViz/Article.svelte';
import { pageTitle } from '$lib/utils/stores';
$pageTitle = 'Experimental';
</script>

<div class="bg-white grid grid-cols-2 p-4 gap-4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ import type { PageLoad } from './$types';
export const load: PageLoad = async ({ fetch, params, url }) => {
const endpoint = `/libraries/${params.id}`;
const queryParams = url.searchParams.toString();
const library = await fetch(`${endpoint}?${queryParams}`).then((res) => res.json());

return {
tree: fetch(`${endpoint}/tree?${queryParams}`).then((res) => res.json()) ?? {},
library: await fetch(`${endpoint}?${queryParams}`).then((res) => res.json())
library,
title: library.name
};
};

0 comments on commit 32e2f4e

Please sign in to comment.