Skip to content

Commit 483e5fe

Browse files
committed
fix(DataPoints): fixed incorrect records displaying in program page
1 parent 2adc206 commit 483e5fe

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Components/DataPoints/DataPoints.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,11 @@ export function DataGrid({records, insideProgramPage, style = {}}) {
333333
setSortedFilteredRecords(sortRecords(filteredRecords));
334334
}, [filteredRecords])
335335

336+
useEffect(() => {
337+
if (insideProgramPage)
338+
setFilteredRecords(records);
339+
}, [insideProgramPage, records]);
340+
336341
return (
337342
<div className="data-grid-container">
338343
<ThemeSwitcherProvider defaultTheme={theme.palette.mode} themeMap={themeMap} style={{width: '70%'}}>

0 commit comments

Comments
 (0)