mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
fix: multi-select branches error.
This commit is contained in:
@@ -50,17 +50,11 @@ const branchItemRenderer = (
|
||||
const branchSelectProps = {
|
||||
itemPredicate: branchItemPredicate,
|
||||
itemRenderer: branchItemRenderer,
|
||||
valueAccessor: 'id',
|
||||
labelAccessor: 'name',
|
||||
tagRenderer: 'name',
|
||||
valueAccessor: (item) => item.id,
|
||||
labelAccessor: (item) => item.label,
|
||||
tagRenderer: (item) => item.name,
|
||||
};
|
||||
|
||||
export function BranchesMultiSelect({ branches, ...rest }) {
|
||||
return (
|
||||
<FMultiSelect
|
||||
items={branches}
|
||||
{...branchSelectProps}
|
||||
{...rest}
|
||||
/>
|
||||
);
|
||||
return <FMultiSelect items={branches} {...branchSelectProps} {...rest} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user