fix some TODOs

This commit is contained in:
Abi Raja 2024-08-29 18:43:40 +02:00
parent 0ff42d9083
commit 6542289931
2 changed files with 2 additions and 7 deletions

View File

@ -89,12 +89,7 @@ function PreviewPane({ doUpdate, reset, settings }: Props) {
/>
</TabsContent>
<TabsContent value="code">
<CodeTab
code={previewCode}
// TODO*
setCode={() => {}}
settings={settings}
/>
<CodeTab code={previewCode} setCode={() => {}} settings={settings} />
</TabsContent>
</Tabs>
</div>

View File

@ -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;
}