From 654228993171adb2360d24397c0998c0f091fa60 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Thu, 29 Aug 2024 18:43:40 +0200 Subject: [PATCH] fix some TODOs --- frontend/src/components/preview/PreviewPane.tsx | 7 +------ frontend/src/components/variants/Variants.tsx | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/preview/PreviewPane.tsx b/frontend/src/components/preview/PreviewPane.tsx index 83ee182..cc58008 100644 --- a/frontend/src/components/preview/PreviewPane.tsx +++ b/frontend/src/components/preview/PreviewPane.tsx @@ -89,12 +89,7 @@ function PreviewPane({ doUpdate, reset, settings }: Props) { /> - {}} - settings={settings} - /> + {}} settings={settings} /> diff --git a/frontend/src/components/variants/Variants.tsx b/frontend/src/components/variants/Variants.tsx index 1a1eb43..6b6ce8f 100644 --- a/frontend/src/components/variants/Variants.tsx +++ b/frontend/src/components/variants/Variants.tsx @@ -3,7 +3,7 @@ import { useProjectStore } from "../../store/project-store"; function Variants() { const { head, commits, updateSelectedVariantIndex } = useProjectStore(); - // TODO*: Is HEAD null right? And check variants.length === 0 || + // If there is no head, don't show the variants if (head === null) { return null; }