File tree 1 file changed +7
-9
lines changed
src/components/fields/ConnectService
1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
1
import { forwardRef } from "react" ;
2
2
import { IPopoverInlineCellProps } from "../types" ;
3
+ import { get } from "lodash" ;
3
4
4
5
import { ButtonBase , Grid , Chip } from "@mui/material" ;
5
6
import ArrowDropDownIcon from "@mui/icons-material/ArrowDropDown" ;
@@ -29,15 +30,12 @@ export const ConnectService = forwardRef(function ConnectService(
29
30
} }
30
31
>
31
32
< ChipList >
32
- { Array . isArray ( value ) && (
33
- < Grid container spacing = { 0.5 } style = { { marginTop : 2 } } >
34
- { value . map ( ( snapshot ) => (
35
- < Grid item key = { get ( snapshot , config . primaryKey ) } >
36
- < Chip component = "li" label = { get ( snapshot , displayKey ) } />
37
- </ Grid >
38
- ) ) }
39
- </ Grid >
40
- ) }
33
+ { Array . isArray ( value ) &&
34
+ value . map ( ( snapshot ) => (
35
+ < Grid item key = { get ( snapshot , config . primaryKey ) } >
36
+ < Chip label = { get ( snapshot , displayKey ) } size = "small" />
37
+ </ Grid >
38
+ ) ) }
41
39
</ ChipList >
42
40
43
41
{ ! disabled && (
You can’t perform that action at this time.
0 commit comments