Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!--
A new scriv changelog fragment.

Uncomment the section that is right (remove the HTML comment wrapper).
-->

<!--
### Added

- A bullet item for the Added category.

-->
<!--
### Changed

- A bullet item for the Changed category.

-->
### Fixed

- Prevent HED check from failing for null values found in sidecar metadata.

<!--
### Deprecated

- A bullet item for the Deprecated category.

-->
<!--
### Removed

- A bullet item for the Removed category.

-->
<!--
### Security

- A bullet item for the Security category.

-->
<!--
### Infrastructure

- A bullet item for the Infrastructure category.

-->
2 changes: 1 addition & 1 deletion src/validators/hed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function sidecarHasHed(sidecarData: BIDSContext['sidecar']): boolean {
}

function sidecarValueHasHed(sidecarValue: { HED?: string }): boolean {
return typeof sidecarValue.HED !== 'undefined'
return typeof sidecarValue?.HED !== 'undefined'
}

async function setHedSchemas(dataset: BIDSContextDataset): Promise<HedIssue[]> {
Expand Down
Loading