Skip to content

Commit

Permalink
Allow a Rubric with an Empty Name to be Loaded (#9875)
Browse files Browse the repository at this point in the history
* Allow a rubric with an empty name to be loaded

* Remove name check entirely, name cannot be undefined
  • Loading branch information
thsparks authored Feb 22, 2024
1 parent 65f431f commit 2b58467
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions teachertool/src/services/storageService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ export async function getRubric(name: string): Promise<Rubric | undefined> {
const db = await getDb;

let rubric: Rubric | undefined = undefined;
if (name) {
rubric = await db.getRubric(name);
}
rubric = await db.getRubric(name);

return rubric;
}
Expand Down

0 comments on commit 2b58467

Please sign in to comment.