Resolve search select.
This commit is contained in:
@@ -36,9 +36,8 @@ const VendorSearchSelect = (
|
||||
width: '100%',
|
||||
}}
|
||||
labelRender={({ label, value, ...rest }) => {
|
||||
console.log(value, label, rest);
|
||||
if (!value) return label;
|
||||
const discount = options.find((o) => o.id === value)?.discount;
|
||||
if (!value || !options) return label;
|
||||
const discount = options?.find((o) => o.id === value)?.discount;
|
||||
return (
|
||||
<div className="imex-flex-row" style={{ width: '100%' }}>
|
||||
<div style={{ flex: 1 }}>{label}</div>
|
||||
|
||||
Reference in New Issue
Block a user