From 2b5846716febd9d1d4d1e1b1d88785eaabd46205 Mon Sep 17 00:00:00 2001 From: Thomas Sparks <69657545+thsparks@users.noreply.github.com> Date: Thu, 22 Feb 2024 12:55:47 -0800 Subject: [PATCH] Allow a Rubric with an Empty Name to be Loaded (#9875) * Allow a rubric with an empty name to be loaded * Remove name check entirely, name cannot be undefined --- teachertool/src/services/storageService.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/teachertool/src/services/storageService.ts b/teachertool/src/services/storageService.ts index e0677609e6c3..459d6e02c9f6 100644 --- a/teachertool/src/services/storageService.ts +++ b/teachertool/src/services/storageService.ts @@ -152,9 +152,7 @@ export async function getRubric(name: string): Promise { const db = await getDb; let rubric: Rubric | undefined = undefined; - if (name) { - rubric = await db.getRubric(name); - } + rubric = await db.getRubric(name); return rubric; }