diff --git a/server/services/historyService.ts b/server/services/historyService.ts index 6fd57809..cc0b2f28 100644 --- a/server/services/historyService.ts +++ b/server/services/historyService.ts @@ -128,7 +128,7 @@ class HistoryService extends BaseService { } getHistory({snapshot}: {snapshot: HistorySnapshot}, callback: (data: TransferHistory | null, error?: Error) => void) { - this.snapshots[snapshot].getData((transferSnapshots, error) => { + this.snapshots[snapshot]?.getData((transferSnapshots, error) => { if (error || transferSnapshots == null) { callback(null, error); return;