From 213491aec9657dc6e1d23ee1f1fbb3963de3280f Mon Sep 17 00:00:00 2001 From: thsparks Date: Wed, 8 May 2024 17:36:28 -0700 Subject: [PATCH] Add error log --- teachertool/src/components/CatalogOverlay.tsx | 1 + teachertool/src/types/errorCode.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/teachertool/src/components/CatalogOverlay.tsx b/teachertool/src/components/CatalogOverlay.tsx index 0aa6308733a8..1c0f64fd0b62 100644 --- a/teachertool/src/components/CatalogOverlay.tsx +++ b/teachertool/src/components/CatalogOverlay.tsx @@ -167,6 +167,7 @@ const CatalogList: React.FC = () => { const tags = Object.keys(criteriaGroupedByTag); if (tags.length === 0) { + logError(ErrorCode.noCatalogCriteria); return null; } diff --git a/teachertool/src/types/errorCode.ts b/teachertool/src/types/errorCode.ts index 31df406efa2a..bd689967f331 100644 --- a/teachertool/src/types/errorCode.ts +++ b/teachertool/src/types/errorCode.ts @@ -27,4 +27,5 @@ export enum ErrorCode { invalidValidatorPlan = "invalidValidatorPlan", askCopilotQuestion = "askCopilotQuestion", missingTag = "missingTag", + noCatalogCriteria = "noCatalogCriteria" }