@webitel/ui-sdk 24.4.23 → 24.4.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "24.4.23",
3
+ "version": "24.4.24",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -143,6 +143,7 @@
143
143
  </template>
144
144
 
145
145
  <script>
146
+ import isEmpty from '../../scripts/isEmpty';
146
147
  import taggableMixin from '../wt-tags-input/mixin/taggableMixin';
147
148
  import multiselectMixin from './mixins/multiselectMixin';
148
149
 
@@ -212,7 +213,7 @@ export default {
212
213
  const customValuesToOptions =
213
214
  Array.isArray(this.value)
214
215
  ? this.value
215
- : (this.value ? [this.value] : []); //do not add empty values
216
+ : (isEmpty(this.value) ? [] : [this.value]); //do not add empty values
216
217
  const optionsWithoutValues = this.selectOptions.filter((opt) => {
217
218
  const optKey = this.trackBy ? opt[this.trackBy] : opt;
218
219
  return !customValuesToOptions.some((customValue) => {