We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 242047b + a10cce7 commit 215e3b5Copy full SHA for 215e3b5
packages/openneuro-server/src/graphql/resolvers/brainInitiative.ts
@@ -30,7 +30,7 @@ export const brainInitiative = async (
30
return await cache.get(async () => {
31
try {
32
const metadata = await Metadata.findOne({ datasetId: dataset.id })
33
- if (metadata.grantFunderName.match(brainInitiativeMatch)) {
+ if (metadata?.grantFunderName?.match(brainInitiativeMatch)) {
34
return true
35
} else {
36
// Fetch snapshot if metadata didn't match
0 commit comments