Skip to content

Commit

Permalink
fix: Select Distinct Column Throws null error (#1101)
Browse files Browse the repository at this point in the history
fixes #1100
  • Loading branch information
Zhou-Ziheng authored Feb 24, 2023
1 parent 7a7fc14 commit 144605a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/iris-grid/src/GotoRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
} from '@deephaven/filters';
import { Button, DateTimeInput } from '@deephaven/components';
import { TableUtils } from '@deephaven/jsapi-utils';
import { assertNotNull } from '@deephaven/utils';
import classNames from 'classnames';
import './GotoRow.scss';
import IrisGridModel from './IrisGridModel';
Expand Down Expand Up @@ -96,8 +95,7 @@ function GotoRow({

const index = model.getColumnIndexByName(gotoValueSelectedColumnName);

assertNotNull(index);
const selectedColumn = columns[index];
const selectedColumn = columns[index ?? 0];

const columnType = selectedColumn?.type;

Expand Down

0 comments on commit 144605a

Please sign in to comment.