From 1f2a60040fca0e46606c2eb49d4785a27a0ed6bf Mon Sep 17 00:00:00 2001 From: David Glymph Date: Fri, 17 May 2024 16:37:12 -0400 Subject: [PATCH] remove predicate filtering by sub/obj domain/range --- .../textEditor/textEditorRow/PredicateSelector.jsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pages/queryBuilder/textEditor/textEditorRow/PredicateSelector.jsx b/src/pages/queryBuilder/textEditor/textEditorRow/PredicateSelector.jsx index 7ab41bdb..d20ba42c 100644 --- a/src/pages/queryBuilder/textEditor/textEditorRow/PredicateSelector.jsx +++ b/src/pages/queryBuilder/textEditor/textEditorRow/PredicateSelector.jsx @@ -46,10 +46,7 @@ export default function PredicateSelector({ id }) { return null; } - return biolink.predicates.filter( - (p) => subjectNodeCategoryHierarchy.includes(p.domain) && - objectNodeCategoryHierarchy.includes(p.range), - ).map((p) => p.predicate); + return biolink.predicates.map(({ predicate }) => predicate); } const filteredPredicateList = useMemo(