Skip to content

Commit 144605a

Browse files
authored
fix: Select Distinct Column Throws null error (#1101)
fixes #1100
1 parent 7a7fc14 commit 144605a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

packages/iris-grid/src/GotoRow.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
} from '@deephaven/filters';
1616
import { Button, DateTimeInput } from '@deephaven/components';
1717
import { TableUtils } from '@deephaven/jsapi-utils';
18-
import { assertNotNull } from '@deephaven/utils';
1918
import classNames from 'classnames';
2019
import './GotoRow.scss';
2120
import IrisGridModel from './IrisGridModel';
@@ -96,8 +95,7 @@ function GotoRow({
9695

9796
const index = model.getColumnIndexByName(gotoValueSelectedColumnName);
9897

99-
assertNotNull(index);
100-
const selectedColumn = columns[index];
98+
const selectedColumn = columns[index ?? 0];
10199

102100
const columnType = selectedColumn?.type;
103101

0 commit comments

Comments
 (0)