mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
Fixes issue where the title field name is shown rather than the value
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { forwardRef } from "react";
|
||||
import { IPopoverInlineCellProps } from "../types";
|
||||
import { get } from "lodash";
|
||||
|
||||
import { ButtonBase, Grid, Chip } from "@mui/material";
|
||||
import ArrowDropDownIcon from "@mui/icons-material/ArrowDropDown";
|
||||
@@ -29,9 +30,9 @@ export const ConnectService = forwardRef(function ConnectService(
|
||||
>
|
||||
<ChipList>
|
||||
{Array.isArray(value) &&
|
||||
value.map((doc: any) => (
|
||||
<Grid item key={doc.primaryKey}>
|
||||
<Chip label={config.titleKey} size="small" />
|
||||
value.map((snapshot) => (
|
||||
<Grid item key={get(snapshot, config.primaryKey)}>
|
||||
<Chip label={get(snapshot, displayKey)} size="small" />
|
||||
</Grid>
|
||||
))}
|
||||
</ChipList>
|
||||
|
||||
Reference in New Issue
Block a user