sprintify-ui 0.10.49 → 0.10.50
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/sprintify-ui.es.js
CHANGED
|
@@ -23924,7 +23924,7 @@ const Q1 = ["onClick"], J1 = { class: "px-2 flex items-center" }, ew = { class:
|
|
|
23924
23924
|
},
|
|
23925
23925
|
emits: ["update:modelValue"],
|
|
23926
23926
|
setup(t, { expose: n, emit: e }) {
|
|
23927
|
-
const o = t, r = e, a = P(null), l = w(() => !o.modelValue || !Array.isArray(o.modelValue) ? [] : o.modelValue.map((u) => o.options.find((d) => d[o.primaryKey]
|
|
23927
|
+
const o = t, r = e, a = P(null), l = w(() => !o.modelValue || !Array.isArray(o.modelValue) ? [] : o.modelValue.map((u) => o.options.find((d) => d[o.primaryKey] == u)).filter((u) => u));
|
|
23928
23928
|
function s(u) {
|
|
23929
23929
|
r(
|
|
23930
23930
|
"update:modelValue",
|
package/package.json
CHANGED
|
@@ -111,7 +111,7 @@ const models = computed(() => {
|
|
|
111
111
|
|
|
112
112
|
return props.modelValue
|
|
113
113
|
.map((id) => {
|
|
114
|
-
return props.options.find((m) => m[props.primaryKey]
|
|
114
|
+
return props.options.find((m) => m[props.primaryKey] == id);
|
|
115
115
|
})
|
|
116
116
|
.filter((m) => m) as RawOption[];
|
|
117
117
|
});
|