From fc5bd8aa8d3780450daaf16512aa789b5f04fe37 Mon Sep 17 00:00:00 2001 From: MoritzWeber Date: Thu, 1 Jun 2023 13:42:50 +0200 Subject: [PATCH] fix: Read-only session tool comparison --- .../create-readonly-session.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/sessions/user-sessions-wrapper/create-session/create-readonly-session/create-readonly-session.component.ts b/frontend/src/app/sessions/user-sessions-wrapper/create-session/create-readonly-session/create-readonly-session.component.ts index cc698a2d8..eabf396c9 100644 --- a/frontend/src/app/sessions/user-sessions-wrapper/create-session/create-readonly-session/create-readonly-session.component.ts +++ b/frontend/src/app/sessions/user-sessions-wrapper/create-session/create-readonly-session/create-readonly-session.component.ts @@ -73,7 +73,7 @@ export class CreateReadonlySessionComponent implements OnInit { } get tools(): Tool[] | undefined { - let toolIds = this.models?.map((m) => m.id); + let toolIds = this.models?.map((m) => m.tool.id); return this.toolService.tools?.filter((t) => toolIds?.includes(t.id)); }