@bagelink/vue 1.7.47 → 1.7.49

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "1.7.47",
4
+ "version": "1.7.49",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
@@ -182,7 +182,7 @@ watch(
182
182
  const newOption = Array.isArray(props.options)
183
183
  ? (props.options.find(o => getValue(o) === newVal) ?? newVal)
184
184
  : newVal
185
- if (newOption && !isSelected(newOption)) { selectedItems.value = [newOption] }
185
+ if (newOption != null && !isSelected(newOption)) { selectedItems.value = [newOption] }
186
186
  } else {
187
187
  const newData = [newVal].flat()
188
188
  const isSame = compareArrays(newData, selectedItems.value)
@@ -233,7 +233,7 @@ watch(
233
233
  const fullOption = newResults.find(
234
234
  (o: Option) => getValue(o) === optionValue,
235
235
  )
236
- if (fullOption) {
236
+ if (fullOption !== undefined) {
237
237
  selectedItems.value.splice(i, 1, fullOption)
238
238
  }
239
239
  }