2902-fix: record table column add behavior (#2936)

This commit is contained in:
Kanav Arora 2023-12-12 16:47:29 +05:30 committed by GitHub
parent 6792724281
commit 4afa277690
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,12 +45,7 @@ export const RecordTableHeaderPlusButtonContent = () => {
{hiddenTableColumns.map((column) => ( {hiddenTableColumns.map((column) => (
<MenuItem <MenuItem
key={column.fieldMetadataId} key={column.fieldMetadataId}
iconButtons={[ onClick={() => handleAddColumn(column)}
{
Icon: IconPlus,
onClick: () => handleAddColumn(column),
},
]}
LeftIcon={icons[column.iconName]} LeftIcon={icons[column.iconName]}
text={column.label} text={column.label}
/> />