|
|
@@ -240,7 +240,7 @@ class EntityManager {
|
|
|
piniaOrmQuery = query.applyToPiniaOrmQuery(piniaOrmQuery)
|
|
|
}
|
|
|
|
|
|
- return computed(() => {
|
|
|
+ const res = computed(() => {
|
|
|
const items: PiniaOrmCollection<ApiResource> = piniaOrmQuery.get()
|
|
|
|
|
|
return {
|
|
|
@@ -254,6 +254,14 @@ class EntityManager {
|
|
|
},
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
+ // @ts-expect-error Needed to avoid 'Cannot stringify non POJO' occasional bugs
|
|
|
+ // eslint-disable-next-line
|
|
|
+ res.toJSON = () => {
|
|
|
+ return 'Computed result from fetchCollection at : ' + url
|
|
|
+ }
|
|
|
+
|
|
|
+ return res
|
|
|
}
|
|
|
|
|
|
/**
|