Skip to content

Commit

Permalink
fix: GoToRow timestamp fails when selected row is out of view (#1717)
Browse files Browse the repository at this point in the history
- Fixes #1561 
- Added the optional chaining operator to prevent an error from being
thrown
  • Loading branch information
wusteven815 authored Jan 8, 2024
1 parent 73e1837 commit 9ddc973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/iris-grid/src/IrisGridUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function isValidIndex(x: number, array: readonly unknown[]): boolean {
}

function isDateWrapper(value: unknown): value is DateWrapper {
return (value as DateWrapper).asDate != null;
return (value as DateWrapper)?.asDate != null;
}

class IrisGridUtils {
Expand Down

0 comments on commit 9ddc973

Please sign in to comment.