Skip to content

Commit f9e214d

Browse files
committed
fix: Load subjects
Type checker doesn't like it, but this fixes it for now. The real fix I think will be to only call the function once, so we can get rid of the `null` check.
1 parent 49b8742 commit f9e214d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/schema/context.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,8 @@ export class BIDSContextDataset implements Dataset {
6363
?.filter((ext) => ext.endsWith('/'))
6464
: [],
6565
)
66-
this.subjects = args.subjects || {
67-
sub_dirs: this.tree.directories.map((dir) => dir.name).filter((dir) =>
68-
dir.startsWith('sub-')
69-
),
70-
}
66+
// @ts-ignore
67+
this.subjects = args.subjects || null
7168
}
7269

7370
get dataset_description(): Record<string, unknown> {

0 commit comments

Comments
 (0)