From b45e9dea29b63d8618e67d8c77057251fc0cf26d Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Thu, 7 Dec 2023 11:29:05 -0500 Subject: [PATCH] clean up --- frontend/src/components/history/utils.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/components/history/utils.ts b/frontend/src/components/history/utils.ts index cfa6171..cfdfbbc 100644 --- a/frontend/src/components/history/utils.ts +++ b/frontend/src/components/history/utils.ts @@ -8,9 +8,7 @@ export function extractHistoryTree( let currentIndex: number | null = version; while (currentIndex !== null) { - // TODO: Handle currentIndex being out of bounds const item: HistoryItem = history[currentIndex]; - console.log(item); if (item) { if (item.type === "ai_create") { @@ -24,6 +22,7 @@ export function extractHistoryTree( // Move to the parent of the current item currentIndex = item.parentIndex; } else { + // TODO: Throw an exception here? // Break the loop if the item is not found (should not happen in a well-formed history) break; }