Skip to content

Commit

Permalink
Fix token used for hierarchy viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
dokempf committed Oct 7, 2024
1 parent f16685b commit 8b6c5eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,14 @@
}>
6493@DMMP
</Button>
<Button class="w-full" on:click={
() => {
systemid = "1042";
instance = "https://dmmp.ub.uni-heidelberg.de";
}
}>
1042@DMMP
</Button>
</div>
<div class="space-y-2 p-4">
<Label>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/apiaccess.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { get } from 'svelte/store';
import { easydbTokenPromiseStore, easydbInstanceStore, userTokenStore } from './stores';
import { easydbInstanceStore, userTokenStore } from './stores';

export async function easydb_api_object(systemid, mask) {
if (!systemid) {
Expand All @@ -24,7 +24,7 @@ export async function easydb_api_object(systemid, mask) {
}

export async function easydbChildrenObject(id, table) {
const token = await get(easydbTokenPromiseStore);
const token = await get(userTokenStore);

const response = await fetch(`${get(easydbInstanceStore)}/api/search?` +
new URLSearchParams({
Expand Down

0 comments on commit 8b6c5eb

Please sign in to comment.