Skip to content

Commit

Permalink
Fixes missing clipboard icon (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardovdheijden authored Oct 13, 2023
1 parent e6e6fcb commit d95a0bb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const WFOTableWithFilter = <T,>({

const rowDetailData: WFOKeyValueTableDataType[] | undefined =
selectedDataForDetailModal &&
Object.entries(tableColumns).map(([key]) => {
Object.entries(tableColumns).map(([key]): WFOKeyValueTableDataType => {
const dataField = getTypedFieldFromObject(key, tableColumns);
if (dataField === null) {
return {
Expand All @@ -144,7 +144,7 @@ export const WFOTableWithFilter = <T,>({
render(dataValue, selectedDataForDetailModal)) ?? (
<>{dataValue}</>
),
plainTextValue:
textToCopy:
clipboardText?.(dataValue, selectedDataForDetailModal) ??
(typeof dataValue === 'string' ? dataValue : undefined),
};
Expand Down

0 comments on commit d95a0bb

Please sign in to comment.