replace raw usewrv with a query() call
parent
7785671684
commit
6a1483ca27
|
@ -84,9 +84,9 @@ export function identify(attributes: ComputedRef<[string, IEntry][]>): ComputedR
|
||||||
|
|
||||||
|
|
||||||
// Out of those, retrieve their TYPE_ID entries
|
// Out of those, retrieve their TYPE_ID entries
|
||||||
const { data: typeIdListing } = useSWRV<ListingResult, unknown>(() => {
|
const { data: typeIdListing } = query(() => {
|
||||||
return isEntries.value && `/api/obj?query=(matches (in ${isEntries.value.map((e) => `"${e}"`).join(" ")}) "TYPE_ID" ?)`;
|
return isEntries.value && `(matches (in ${isEntries.value.map((e) => `"${e}"`).join(" ")}) "TYPE_ID" ?)`;
|
||||||
}, fetcher);
|
});
|
||||||
|
|
||||||
const typeIdAttributes: ComputedRef<[string, string][]> = computed(() => {
|
const typeIdAttributes: ComputedRef<[string, string][]> = computed(() => {
|
||||||
return Object.values(typeIdListing.value || {}).map((entry) => {
|
return Object.values(typeIdListing.value || {}).map((entry) => {
|
||||||
|
|
Loading…
Reference in New Issue