From b4c43a2f1e45170743d2470509293c3292b66744 Mon Sep 17 00:00:00 2001 From: marryday Date: Sat, 30 Sep 2023 03:54:43 +0400 Subject: [PATCH] fix: randStudent mainTeacher max randNumber --- apps/projection/src/app/data-access/fake-http.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/projection/src/app/data-access/fake-http.service.ts b/apps/projection/src/app/data-access/fake-http.service.ts index ac12467..e21ce03 100644 --- a/apps/projection/src/app/data-access/fake-http.service.ts +++ b/apps/projection/src/app/data-access/fake-http.service.ts @@ -36,7 +36,7 @@ export const randStudent = (): Student => ({ id: factoryStudent(), firstname: randFirstName(), lastname: randLastName(), - mainTeacher: teachers[randNumber({ max: teachers.length })], + mainTeacher: teachers[randNumber({ max: teachers.length - 1 })], school: randWord(), });