From 33d20699025295b26f4cf4266b6676dfc8d8e97d Mon Sep 17 00:00:00 2001 From: Rob Mitchell Date: Tue, 22 Oct 2024 08:53:28 -0400 Subject: [PATCH] fix --- .../app/query/components/resultsView/tableComponents/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/query-connector/src/app/query/components/resultsView/tableComponents/utils.ts b/query-connector/src/app/query/components/resultsView/tableComponents/utils.ts index 71b0c1cbb..af3af7f83 100644 --- a/query-connector/src/app/query/components/resultsView/tableComponents/utils.ts +++ b/query-connector/src/app/query/components/resultsView/tableComponents/utils.ts @@ -2,8 +2,8 @@ type Lengthwise = { length: number; }; -function isLengthwise(thing: any): thing is Lengthwise { - return thing?.length !== undefined; +function isLengthwise(thing: unknown): thing is Lengthwise { + return typeof thing === "object" && thing !== null && "length" in thing; } /**