From 5b2f8f2d2f663b655565eaa71fcaac60e0b81977 Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Thu, 5 Dec 2024 10:48:16 +1300 Subject: [PATCH] Fix issue with undefined --- .../src/indexer/storeModelProvider/baseStoreModel.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node-core/src/indexer/storeModelProvider/baseStoreModel.service.ts b/packages/node-core/src/indexer/storeModelProvider/baseStoreModel.service.ts index 841a896df2..08e011002c 100644 --- a/packages/node-core/src/indexer/storeModelProvider/baseStoreModel.service.ts +++ b/packages/node-core/src/indexer/storeModelProvider/baseStoreModel.service.ts @@ -53,7 +53,7 @@ export abstract class BaseStoreModelService> implements BeforeAp getAllExporters(): Exporter[] { return Object.values(this.cachedModels) - .map((m) => (m as any).exporters) + .map((m) => (m as any).exporters ?? []) .flat(); } }