Skip to content

Commit

Permalink
Fix issue with undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname committed Dec 4, 2024
1 parent 1811ea6 commit 5b2f8f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export abstract class BaseStoreModelService<M = IModel<any>> implements BeforeAp

getAllExporters(): Exporter[] {
return Object.values(this.cachedModels)
.map((m) => (m as any).exporters)
.map((m) => (m as any).exporters ?? [])
.flat();
}
}

0 comments on commit 5b2f8f2

Please sign in to comment.