Skip to content

Commit

Permalink
feat(CODE): ADDON-58506 Improve table using docked property (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbalar-splunk authored Dec 2, 2022
1 parent b16d768 commit 041452f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/main/webapp/components/table/CustomTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function CustomTable({
column.push({
...item,
sortKey: item.field || null,
isCustomMapping: item.mapping ? true : false
isCustomMapping: !!item.mapping
});
});
}
Expand Down Expand Up @@ -252,6 +252,7 @@ function CustomTable({
{columns && columns.length && (
<Table // nosemgrep: typescript.react.best-practice.react-props-spreading.react-props-spreading
stripeRows
headType='docked'
{...(moreInfo ? { rowExpansion: 'single' } : {})}
>
{getTableHeaderCell()}
Expand All @@ -274,6 +275,7 @@ CustomTable.propTypes = {
handleSort: PropTypes.func,
sortDir: PropTypes.string,
sortKey: PropTypes.string,
tableConfig: PropTypes.object.isRequired,
};

export default memo(CustomTable);

0 comments on commit 041452f

Please sign in to comment.