@dative-gpi/foundation-core-services 1.0.113 → 1.0.114

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,11 +29,11 @@ export const useDeviceExplorerElements = () => {
29
29
 
30
30
  const fetching = ref(false);
31
31
  const entities = ref<DeviceExplorerElementInfos[]>([]);
32
- const filters = ref<DeviceExplorerElementFilters | null>(null);
32
+ const filters = ref<DeviceExplorerElementFilters>();
33
33
 
34
- const getMany = async (...args: Parameters<typeof DeviceExplorerElementServiceFactory.getMany>) => {
34
+ const getMany = async (filter?: DeviceExplorerElementFilters) => {
35
35
  fetching.value = true;
36
- filters.value = args.pop() ?? null;
36
+ filters.value = filter;
37
37
 
38
38
  const filterMethod = (el: DeviceExplorerElementInfos): boolean => {
39
39
  if (!filters.value) {
@@ -51,7 +51,7 @@ export const useDeviceExplorerElements = () => {
51
51
  const onCollectionChangedCustom = onCollectionChanged(entities, filterMethod) ;
52
52
 
53
53
  try {
54
- entities.value = await DeviceExplorerElementServiceFactory.getMany(...args);
54
+ entities.value = await DeviceExplorerElementServiceFactory.getMany(filters.value);
55
55
 
56
56
  subscribeToDeviceOrganisations("all", (ev: NotifyEvent, el: DeviceOrganisationDetails | any) => {
57
57
  switch(ev) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-core-services",
3
3
  "sideEffects": false,
4
- "version": "1.0.113",
4
+ "version": "1.0.114",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -10,7 +10,7 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@dative-gpi/foundation-core-domain": "1.0.113"
13
+ "@dative-gpi/foundation-core-domain": "1.0.114"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "@dative-gpi/bones-ui": "^1.0.0",
@@ -18,5 +18,5 @@
18
18
  "vue": "^3.4.29",
19
19
  "vue-router": "^4.3.0"
20
20
  },
21
- "gitHead": "901e954dba5d5ad505883a46a93831fdd780606b"
21
+ "gitHead": "48de9927d991f8b2f063f63a3ac97697edcd03cb"
22
22
  }