From a5252f911745b638b9725afa5af54c7425e6aad6 Mon Sep 17 00:00:00 2001 From: Matt Holtzman Date: Thu, 31 Aug 2023 10:39:29 -0400 Subject: [PATCH] final changes --- main/store/state/types/inventory.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main/store/state/types/inventory.ts b/main/store/state/types/inventory.ts index 31c656493..7a9ecc4e7 100644 --- a/main/store/state/types/inventory.ts +++ b/main/store/state/types/inventory.ts @@ -25,7 +25,10 @@ const v40InventoryCollection = z.object({ const v40 = z.record(v40InventoryCollection) const latestCollectionSchema = v40InventoryCollection -const latest = v40.catch({}).default({}) +const latest = v40 + .catch({}) + .default({}) + .transform(() => ({} as Record)) export { v40InventoryCollection as v40, latest }