diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-10-14 14:39:35 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-10-14 14:39:35 +0200 |
commit | 4fd9bc344d4a94fc081a43d19067e70ef494e4ae (patch) | |
tree | 45b50c31fbf9903b62154b70e88c3aea43ca0dee /pages/index.tsx | |
parent | ce08e92ef245961c25d1b0febb5983fcc5c2809e (diff) |
feat: filter org-noter pages
Diffstat (limited to 'pages/index.tsx')
-rw-r--r-- | pages/index.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
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) => { |