From edf165260e4494333e0cfcf1cb356159465f9a5b Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 21 Apr 2024 14:29:37 +0300 Subject: [PATCH] Add new methods 7 --- src/modules/bar/bar.service.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/bar/bar.service.ts b/src/modules/bar/bar.service.ts index 940112d..802e427 100644 --- a/src/modules/bar/bar.service.ts +++ b/src/modules/bar/bar.service.ts @@ -130,7 +130,11 @@ export class BarService { if (report) { const answers = report.answers .map((answer) => { - return setting.answers[answer]; + if (setting) { + return setting.answers[answer]; + } else { + return []; + } }) .filter((answer) => { return answer !== undefined;