From 3852460960f8473aae2a478a2b1ce469baad7d3d Mon Sep 17 00:00:00 2001 From: mshanemc Date: Thu, 26 Oct 2023 12:37:09 -0500 Subject: [PATCH] refactor: avoid any --- src/shared/snapshot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/snapshot.ts b/src/shared/snapshot.ts index eec6d6f9..de1d86f3 100644 --- a/src/shared/snapshot.ts +++ b/src/shared/snapshot.ts @@ -117,7 +117,7 @@ export const printSingleRecordTable = (snapshotRecord: OrgSnapshot): void => { Object.entries(snapshotRecord) .filter(([key]) => key !== 'attributes') // remove empty error field - .filter(([key, value]) => key !== 'Error' || value) + .filter(([key, value]) => key !== 'Error' || typeof value === 'string') // every field on the type is a string .map(([key, value]: [string, string]) => ({ Name: capitalCase(key),