From 2557328ae5500c382743eb19b427c4c47530c2af Mon Sep 17 00:00:00 2001 From: Lance Gliser Date: Wed, 18 Sep 2024 10:00:17 -0500 Subject: [PATCH] Removed a check for trainee.id that shouldn't be required. --- src/client/wasm/client.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/client/wasm/client.ts b/src/client/wasm/client.ts index 6ef37db..7eb0728 100644 --- a/src/client/wasm/client.ts +++ b/src/client/wasm/client.ts @@ -399,9 +399,6 @@ export class WasmClient extends BaseClient implements ITraineeClient, ISessionCl // Check if trainee already loaded const trainee = await this.autoResolveTrainee(traineeId); - if (!trainee.id) { - throw new Error(`trainee.id is undefined`); - } const cached = this.traineeCache.get(trainee.id); if (cached) { if (["allow", "always"].indexOf(String(cached.trainee.persistence)) != -1) {