TP-48182|tele sensei v3.1 comments resolved| Aman Singh (#839)

Co-authored-by: Mantri Ramkishor <mantri.ramkishor@navi.com>
This commit is contained in:
Aman Singh
2024-02-20 20:47:52 +05:30
committed by GitHub
parent fab8530a6b
commit 710f2839a8

View File

@@ -203,10 +203,6 @@ const Index: React.FC<IFilters> = props => {
generateData();
}, [tableData]);
useEffect(() => {
ref?.current?.api?.sizeColumnsToFit();
}, [tableData, loading]);
return (
<div className={cx(styles.EmiBucketWiseSummary, 'agentDepositionSummary')}>
<div className={styles.tableContainer}>
@@ -249,7 +245,10 @@ const Index: React.FC<IFilters> = props => {
suppressRowClickSelection={true}
suppressRowDrag={false}
alternateRowColor="var(--greyscale-content-4)"
getRowHeight={params => params.data?.rowHeight}
getRowHeight={params => {
ref?.current?.api?.sizeColumnsToFit();
return params.data?.rowHeight;
}}
/>
{!data.length ? <NoDataFound className={styles.noDataFound} /> : null}
</div>