From 4fd9bc344d4a94fc081a43d19067e70ef494e4ae Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Thu, 14 Oct 2021 14:39:35 +0200 Subject: feat: filter org-noter pages --- pages/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pages/index.tsx') diff --git a/pages/index.tsx b/pages/index.tsx index efbdbad..a998c82 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -827,6 +827,10 @@ export const Graph = function (props: GraphProps) { hiddenNodeIdsRef.current = { ...hiddenNodeIdsRef.current, [node.id]: node } return false } + if (filter.noter && node.properties?.NOTER_PAGE) { + hiddenNodeIdsRef.current = { ...hiddenNodeIdsRef.current, [node.id]: node } + return false + } return true }) .filter((node) => { -- cgit v1.2.3