Skip to content

Commit

Permalink
Fix row index causing popover to not show up on page >=2
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 committed Feb 10, 2023
1 parent 4da12d7 commit 548f768
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const DataGrid: FC<Props> = memo(
analysisType === ANALYSIS_CONFIG_TYPE.OUTLIER_DETECTION
) {
if (schema === 'featureImportance') {
const row = data[rowIndex];
const row = data[rowIndex - pagination.pageIndex * pagination.pageSize];
if (!row) return <div />;
// if resultsField for some reason is not available then use ml
const mlResultsField = resultsField ?? DEFAULT_RESULTS_FIELD;
Expand Down

0 comments on commit 548f768

Please sign in to comment.