multi select tag names are not displayed in edit form
<Form.Item name={["staff_speciality_mappings"]}>
<CustomSelect
placeholder="Speciality"
size="large"
style={{ width: "100%" }}
label={"Speciality"}
selectedOption={false}
{...selectSpecialities}
mode="multiple"
onChange={(val) => setSpecialities(val)}
/>
</Form.Item>
5 Replies
rival-black•2y ago
it showing tags with empty name
staff_speciality_mappings is array of object
Hey @rehan1 👋,
The example of Tags input in our nestjs example may help you⚡️
https://refine.dev/docs/examples/data-provider/nestjsxCrud/
https://github.com/refinedev/refine/blob/next/examples/dataProvider/nestjsxCrud/src/pages/posts/edit.tsx#L70
Nestjsx Crud | refine
refine Nestjsx Crud Data Provider allows you to use your data on the frontend by connecting to your Nestjsx API. With refine, it perform these operations for you without having to write extra code for queries. By examining this example, you can learn how to use the Nestjsx Crud Data Provider.
GitHub
refine/edit.tsx at next · refinedev/refine
Build your React-based CRUD applications, without constraints. - refine/edit.tsx at next · refinedev/refine
rival-black•2y ago
yeah its working but id is getting displayed i want labels and incoming values are not getting selected in dropdown
rival-black•2y ago
that right tick is not getting selected
rival-black•2y ago
labels i am able to display but selected once dont have right tick in dropdown