feat: show only 5 rows of data when previewing

This commit is contained in:
karishmas6
2024-10-21 15:20:57 +05:30
parent f4c68744ab
commit a804f8d31a

View File

@@ -173,7 +173,7 @@ export const InterpretationLog: React.FC<InterpretationLogProps> = ({ isOpen, se
</TableRow>
</TableHead>
<TableBody>
{tableData.map((row, index) => (
{tableData.slice(0, Math.min(5, tableData.length)).map((row, index) => (
<TableRow key={index}>
{columns.map((column) => (
<TableCell key={column}>{row[column]}</TableCell>