Awesome cheers mate ! it works however when i select a quantity it always puts 1 in no matter what number i select? when its like this ,
let oneItem = {
label: String(item.quantity),
value: String(item[valueField])
}
if i take out [valueField] and replace with the actual value then it works fine and i can select its ok just give me less flexibility from backend code
let oneItem = {
label: String(item.quantity),
value: String(item.quantity)
}
how come the other way works with text? because text is already a string?