diff --git a/frontend/src/components/HistoryDisplay.tsx b/frontend/src/components/HistoryDisplay.tsx index 2d76783..0306cf1 100644 --- a/frontend/src/components/HistoryDisplay.tsx +++ b/frontend/src/components/HistoryDisplay.tsx @@ -25,15 +25,16 @@ function displayHistoryItemType(itemType: HistoryItemType) { } export default function HistoryDisplay({ history, revertToVersion }: Props) { - return ( -
-

History

+ return history.length === 0 ? null : ( +
+

History

-
    +
      {history.map((item, index) => (
    • revertToVersion(index)} >

      {displayHistoryItemType(item.type)}