@karta.io/utils 1.0.0-alpha.21 → 1.0.0-alpha.23

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.
package/dist/index.cjs CHANGED
@@ -415,7 +415,7 @@ function useAsyncMultiselect({
415
415
  const { call, abort } = useAbortController(apiMethod);
416
416
  const loadWAC = () => {
417
417
  const includedIdsBySelectedValues = reactiveData.selectedValues ?? [];
418
- const includedIdsByParams = JSON.parse(reactiveData.params || {})?.includedIds ?? [];
418
+ const includedIdsByParams = (Boolean(reactiveData.params) && JSON.parse(reactiveData.params || {})?.includedIds) ?? [];
419
419
  const includedIds = union__default(includedIdsBySelectedValues, includedIdsByParams);
420
420
  return call({
421
421
  page: reactiveData.page,
package/dist/index.mjs CHANGED
@@ -397,7 +397,7 @@ function useAsyncMultiselect({
397
397
  const { call, abort } = useAbortController(apiMethod);
398
398
  const loadWAC = () => {
399
399
  const includedIdsBySelectedValues = reactiveData.selectedValues ?? [];
400
- const includedIdsByParams = JSON.parse(reactiveData.params || {})?.includedIds ?? [];
400
+ const includedIdsByParams = (Boolean(reactiveData.params) && JSON.parse(reactiveData.params || {})?.includedIds) ?? [];
401
401
  const includedIds = union(includedIdsBySelectedValues, includedIdsByParams);
402
402
  return call({
403
403
  page: reactiveData.page,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karta.io/utils",
3
- "version": "1.0.0-alpha.21",
3
+ "version": "1.0.0-alpha.23",
4
4
  "description": "karta.io utils for admin and application",
5
5
  "author": "Vitaly Blokhin <karambafe@gmail.com>",
6
6
  "homepage": "",
@@ -24,7 +24,7 @@
24
24
  "vue": "3.3.x"
25
25
  },
26
26
  "dependencies": {
27
- "@karta.io/common-data": "^1.0.0-alpha.21",
27
+ "@karta.io/common-data": "^1.0.0-alpha.23",
28
28
  "@tanstack/vue-query": "4.33.1",
29
29
  "@vueuse/core": "10.3.0",
30
30
  "async-validator": "4.2.5",