From 0efd2ad69cff45ff02b3d28e7c7a9f99e6c13ac4 Mon Sep 17 00:00:00 2001 From: Tomasz Pluskiewicz Date: Thu, 19 Dec 2024 15:36:12 +0100 Subject: [PATCH] feat(hierarchies): find hierarchies in all graphs --- ui/src/api/common.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/src/api/common.ts b/ui/src/api/common.ts index b018cba77..8076b71e7 100644 --- a/ui/src/api/common.ts +++ b/ui/src/api/common.ts @@ -4,6 +4,10 @@ import { rdf, schema } from '@tpluscode/rdf-ns-builders' import { Actions } from '@/api/mixins/ApiResource' export function findOperation (resource: RdfResource, idOrType: NamedNode): RuntimeOperation | null { + if (!resource.id.value.includes(window.APP_CONFIG.apiCoreBase)) { + return null + } + const matches = resource.operations.filter(op => op.pointer.has(rdf.type, idOrType).values.length) if (matches.length > 1) {