How to customize useSelect hooks optionLabel with multiple value?

I have implemented useSelect hook on create form and which is working fine. But now there is an requirement to show the label with combining multiple field.

For eg:
I have a data as
{
    [
        {
            id: 1,
            title: "E-business",
            code: "3234",
        },
        {
            id: 2,
            title: "Virtual Invoice Avon",
            code: "4232",
        },
        {
            id: 3,
            title: "Unbranded",
            code: "4232",
        },
    ];
}

Now I want my
optionLabel
to be the combination of
title
and
code
as
E-business (3234)
,
Virtual Invoice Avon (4232)
, and
Unbranded (4232)
. Is there a way to achieve this?
Was this page helpful?