Skip to content

Commit 89b6a01

Browse files
committed
fix: resolve corpus folder ids
1 parent 54bee61 commit 89b6a01

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/scripts/app.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ korpApp.run([
172172
let waitForLogin = false
173173

174174
async function initializeCorpusSelection(ids: string[], skipLogin?: boolean): Promise<void> {
175+
// Resolve any folder ids to the contained corpus ids
176+
ids = ids.flatMap((id) => getAllCorporaInFolders(settings.folders, id))
177+
175178
const isDenied = (corpus?: CorpusTransformed) =>
176179
corpus?.limited_access && !auth.hasCredential(corpus.id.toUpperCase())
177180

0 commit comments

Comments
 (0)