Fix optional chaining in tag explorer exclude example (#2200)

Prevents null pointer
This commit is contained in:
Sidney
2025-11-11 18:14:04 +01:00
committed by GitHub
parent ef29c69828
commit e7d2a57aad

View File

@@ -162,7 +162,7 @@ You can access the tags of a file by `node.data.tags`.
Component.Explorer({ Component.Explorer({
filterFn: (node) => { filterFn: (node) => {
// exclude files with the tag "explorerexclude" // exclude files with the tag "explorerexclude"
return node.data.tags?.includes("explorerexclude") !== true return node.data?.tags?.includes("explorerexclude") !== true
}, },
}) })
``` ```