-
Hey Refine Devs/Community, Node v.: v18.16.0 It feel like I'm missing something or that might be a bug with in 'multiple' mode, still digging, but if anyone had it and found how to fix it - would be grateful if you could share you hack ;) I will try few things more and re-reding the docs as well, might be helpful 😄 Or I will hack it for now, but using build in tools seems more cleaner! Code is simple, by the book: const workerData = queryResult?.data?.data;
const { selectProps: workTypesSelectProps } = useSelect({
resource: 'work-types',
optionLabel: 'name',
defaultValue: workerData?.work_types.map((workType) => workType.id),
});
........
<Select {...workTypesSelectProps} mode='multiple' size={'large'} /> |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello @w20k, const workerData = queryResult?.data?.data || []; However, to debug this issue, I need By the way, if you provide a producible example, I will be happy to debug. |
Beta Was this translation helpful? Give feedback.
Found the option, how it's generated vie inferencer (aweomse thingy 😄 ), issue was related to antd form.item: