From 2f53540e2d6b9f6199ff8c651ab86e4ca31d393e Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Thu, 7 Dec 2023 11:41:28 -0500 Subject: [PATCH] fix bug --- frontend/src/components/history/HistoryDisplay.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/history/HistoryDisplay.tsx b/frontend/src/components/history/HistoryDisplay.tsx index 216e5bb..c13de1e 100644 --- a/frontend/src/components/history/HistoryDisplay.tsx +++ b/frontend/src/components/history/HistoryDisplay.tsx @@ -54,7 +54,7 @@ export default function HistoryDisplay({ >

{displayHistoryItemType(item.type)}

- {item.parentIndex && item.parentIndex !== index - 1 ? ( + {item.parentIndex !== null && item.parentIndex !== index - 1 ? (

(parent: v{(item.parentIndex || 0) + 1})