From 0ba765fe354be2331f2a78528872a15be6580ef5 Mon Sep 17 00:00:00 2001 From: Sidney <85735034+sidney-eliot@users.noreply.github.com> Date: Tue, 11 Nov 2025 13:58:41 +0100 Subject: [PATCH] Fix optional chaining in tag explorer exclude example Prevents null pointer --- docs/features/explorer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/features/explorer.md b/docs/features/explorer.md index 9f06d0cef..797d4f1ac 100644 --- a/docs/features/explorer.md +++ b/docs/features/explorer.md @@ -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 }, }) ```