diff --git a/src/corpora/corpora.composable.js b/src/corpora/corpora.composable.js index c73a35b..243d93e 100644 --- a/src/corpora/corpora.composable.js +++ b/src/corpora/corpora.composable.js @@ -30,7 +30,6 @@ export default function useCorpora() { .then((jobs) => jobs.forEach((job) => { corpusStore.corpora[job.corpus_id].status = job; - corpusStore.corpora[job.corpus_id].sources = job.available_files; }) ); } diff --git a/src/corpus/corpus.composable.js b/src/corpus/corpus.composable.js index 14daf82..a987d35 100644 --- a/src/corpus/corpus.composable.js +++ b/src/corpus/corpus.composable.js @@ -5,6 +5,7 @@ import useMessenger from "@/message/messenger.composable"; import useCorpora from "@/corpora/corpora.composable"; import useConfig from "./config/config.composable"; import useExports from "./exports/exports.composable"; +import useSources from "./sources/sources.composable"; /** Let data be refreshed initially, but skip subsequent load calls. */ const isCorpusFresh = {}; @@ -17,6 +18,7 @@ export default function useCorpus(corpusId) { const { alertError } = useMessenger(); const { loadConfig } = useConfig(corpusId); const { loadExports } = useExports(corpusId); + const { loadSources } = useSources(corpusId); async function loadCorpus(force = false) { await loadCorpora(); @@ -26,6 +28,7 @@ export default function useCorpus(corpusId) { await Promise.all([ loadConfig(), // loadExports(), + loadSources(), ]); isCorpusFresh[corpusId] = true; }