Skip to content

Commit

Permalink
Fix problem with changing book collection not working (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmoore1 authored Nov 29, 2023
1 parent 8882ba7 commit b5f5012
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/ScriptureViewSofria.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ TODO:
) => {
// Is it possible that this could be called and proskomma is not set yet?
if (!proskomma) return;
await loadDocSetIfNotLoaded(proskomma, docSet);
await loadDocSetIfNotLoaded(proskomma, docSet, fetch);
const fnc = 'abcdefghijklmnopqrstuvwxyz';
const cl = new SofriaRenderFromProskomma({
Expand Down
4 changes: 2 additions & 2 deletions src/lib/data/scripture.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export async function loadDocSet(proskomma, docSet, fetch) {
}
}

export async function loadDocSetIfNotLoaded(proskomma, docSet) {
export async function loadDocSetIfNotLoaded(proskomma, docSet, fetch) {
performance.mark('pk-query-docset-start');
const docslist = await proskomma.gqlQuery('{docSets { id } }');
performance.mark('pk-query-docset-end');
Expand All @@ -58,6 +58,6 @@ export async function loadDocSetIfNotLoaded(proskomma, docSet) {
}

if (!found) {
await loadDocSet(proskomma, docSet);
await loadDocSet(proskomma, docSet, fetch);
}
}

0 comments on commit b5f5012

Please sign in to comment.