Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewpeterkort committed Jun 15, 2024
1 parent 3424a9a commit 474103d
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,19 +126,6 @@ const ExplorerTable = ({ index, tableConfig }: ExplorerTableProps) => {
: undefined;
}, []);

const getNodeType = useCallback((tableConfig: SummaryTable) => {
const { detailsConfig } = tableConfig || {};
const nodeType: string | undefined = detailsConfig?.nodeType;
return (
originalRow: JSONObject,
_index: number,
_parentRow: MRT_Row<JSONObject>,
) =>
nodeType && Object.keys(originalRow).includes(nodeType)
? (originalRow[nodeType] as string)
: undefined;
}, []);

const cohortFilters = useCoreSelector((state: CoreState) =>
selectIndexFilters(state, index),
);
Expand Down Expand Up @@ -203,7 +190,6 @@ const ExplorerTable = ({ index, tableConfig }: ExplorerTableProps) => {
onSortingChange: setSorting,
enableTopToolbar: false,
getRowId: getRowId(tableConfig),
getNodeType: getNodeType(tableConfig),
rowCount: totalRowCount,
paginationDisplayMode: 'pages',
enableRowSelection: tableConfig?.selectableRows ?? false,
Expand Down

0 comments on commit 474103d

Please sign in to comment.