Skip to content

Commit

Permalink
fix: read default settings before using them in getInfoData
Browse files Browse the repository at this point in the history
  • Loading branch information
arildm committed Sep 18, 2024
1 parent 7d723b9 commit c2fa838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/scripts/data_init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ export async function fetchInitialData(authDef: Promise<boolean>) {
// Start fetching locales asap. Await and read it later, in the Angular context.
initLocales()

setDefaultConfigValues()

// Fetch corpus configuration and metadata
const config = await getConfig()
const infos = await getInfoData(Object.keys(config.corpora))
Expand All @@ -257,8 +259,6 @@ export async function fetchInitialData(authDef: Promise<boolean>) {
require("./parallel/stats_proxy")
}

setDefaultConfigValues()

if (!settings.parallel) {
settings.corpusListing = new CorpusListing(settings.corpora)
} else {
Expand Down

0 comments on commit c2fa838

Please sign in to comment.