From e7d2a57aad1d676fdee4cd8654c91d8272c365c7 Mon Sep 17 00:00:00 2001 From: Sidney <85735034+sidney-eliot@users.noreply.github.com> Date: Tue, 11 Nov 2025 18:14:04 +0100 Subject: [PATCH] Fix optional chaining in tag explorer exclude example (#2200) 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 }, }) ```