docs: fix explorer example (#483)

This commit is contained in:
Ben Schlegel 2023-09-18 23:32:00 +02:00 committed by GitHub
parent 6a2e0b3ad3
commit 0d3cf29226
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -152,7 +152,7 @@ Component.Explorer({
filterFn: (node) => {
// set containing names of everything you want to filter out
const omit = new Set(["authoring content", "tags", "hosting"])
return omit.has(node.name.toLowerCase())
return !omit.has(node.name.toLowerCase())
},
})
```