Skip to content

Commit

Permalink
fix(custom-data-link): allow falsey values for resources (#1112)
Browse files Browse the repository at this point in the history
  • Loading branch information
mediremi authored Feb 8, 2022
1 parent a0b9379 commit 75f3528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/data/src/links/CustomDataLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class CustomDataLink implements DataEngineLink {
}

const customResource = this.data[query.resource]
if (!customResource) {
if (customResource === undefined) {
if (this.failOnMiss) {
throw new Error(
`No data provided for resource type ${query.resource}!`
Expand Down

0 comments on commit 75f3528

Please sign in to comment.