diff --git a/ui/src/lib/entity.ts b/ui/src/lib/entity.ts index 2290ae7..47b1ce5 100644 --- a/ui/src/lib/entity.ts +++ b/ui/src/lib/entity.ts @@ -84,9 +84,9 @@ export function identify(attributes: ComputedRef<[string, IEntry][]>): ComputedR // Out of those, retrieve their TYPE_ID entries - const { data: typeIdListing } = useSWRV(() => { - return isEntries.value && `/api/obj?query=(matches (in ${isEntries.value.map((e) => `"${e}"`).join(" ")}) "TYPE_ID" ?)`; - }, fetcher); + const { data: typeIdListing } = query(() => { + return isEntries.value && `(matches (in ${isEntries.value.map((e) => `"${e}"`).join(" ")}) "TYPE_ID" ?)`; + }); const typeIdAttributes: ComputedRef<[string, string][]> = computed(() => { return Object.values(typeIdListing.value || {}).map((entry) => {