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

Prevents null pointer
This commit is contained in:
Sidney authored and GitHub committed 2025-11-11 09:14:04 -08:00
1 parent ef29c69828
commit e7d2a57aad
1 file changed
+1 -1
+1 -1
View File
@@ -162,7 +162,7 @@ You can access the tags of a file by `node.data.tags`.
Component.Explorer({
filterFn: (node) => {
// exclude files with the tag "explorerexclude"
return node.data.tags?.includes("explorerexclude") !== true
return node.data?.tags?.includes("explorerexclude") !== true
},
})
```