Skip to content

Commit 9ddc973

Browse files
authored
fix: GoToRow timestamp fails when selected row is out of view (#1717)
- Fixes #1561 - Added the optional chaining operator to prevent an error from being thrown
1 parent 73e1837 commit 9ddc973

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/iris-grid/src/IrisGridUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ function isValidIndex(x: number, array: readonly unknown[]): boolean {
188188
}
189189

190190
function isDateWrapper(value: unknown): value is DateWrapper {
191-
return (value as DateWrapper).asDate != null;
191+
return (value as DateWrapper)?.asDate != null;
192192
}
193193

194194
class IrisGridUtils {

0 commit comments

Comments
 (0)