Skip to content

Commit 982dc25

Browse files
authored
Merge pull request #570 from lafronzt/issue/569
Fixes issue where the title field name is shown rather than the value
2 parents a64c531 + e99873d commit 982dc25

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

Diff for: src/components/fields/ConnectService/InlineCell.tsx

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { forwardRef } from "react";
22
import { IPopoverInlineCellProps } from "../types";
3+
import { get } from "lodash";
34

45
import { ButtonBase, Grid, Chip } from "@mui/material";
56
import ArrowDropDownIcon from "@mui/icons-material/ArrowDropDown";
@@ -29,15 +30,12 @@ export const ConnectService = forwardRef(function ConnectService(
2930
}}
3031
>
3132
<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+
))}
4139
</ChipList>
4240

4341
{!disabled && (

0 commit comments

Comments
 (0)