docs: fix explorer example (#483)

This commit is contained in:
Ben Schlegel 2023-09-18 23:32:00 +02:00 committed by GitHub
parent f030418822
commit 1a572d77ef

View File

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