Skip to content

Commit

Permalink
Restore list-sources call
Browse files Browse the repository at this point in the history
  • Loading branch information
arildm committed Sep 18, 2023
1 parent 08e74a0 commit 721f967
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/corpora/corpora.composable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})
);
}
Expand Down
3 changes: 3 additions & 0 deletions src/corpus/corpus.composable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand All @@ -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();
Expand All @@ -26,6 +28,7 @@ export default function useCorpus(corpusId) {
await Promise.all([
loadConfig(), //
loadExports(),
loadSources(),
]);
isCorpusFresh[corpusId] = true;
}
Expand Down

0 comments on commit 721f967

Please sign in to comment.