From 9ddc973108a6cc88999003c2d0dc6b48044967cc Mon Sep 17 00:00:00 2001 From: Steven Wu Date: Mon, 8 Jan 2024 16:29:05 -0500 Subject: [PATCH] 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 --- packages/iris-grid/src/IrisGridUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/iris-grid/src/IrisGridUtils.ts b/packages/iris-grid/src/IrisGridUtils.ts index cdbcab5b74..325728346c 100644 --- a/packages/iris-grid/src/IrisGridUtils.ts +++ b/packages/iris-grid/src/IrisGridUtils.ts @@ -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 {