Skip to content
Snippets Groups Projects
Verified Commit 556bc3b3 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix(select): update value() to return only value

parent b78eba5e
Branches
Tags
No related merge requests found
......@@ -2046,14 +2046,17 @@ function convertSelectionToValue(selection) {
if (isArray(selection)) {
for (const obj of selection) {
const v = obj?.["value"];
if (v !== undefined) value.push(v);
if (v !== undefined) value.push(`${v}`);
}
}
if (value.length === 0) {
return "";
} else if (value.length === 1) {
return value.pop();
const v= value.pop();
if (v === undefined) return "";
if (v === null) return "";
return `${v}`;
}
return value.join(",");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment