fix some TODOs
This commit is contained in:
parent
0ff42d9083
commit
6542289931
@ -89,12 +89,7 @@ function PreviewPane({ doUpdate, reset, settings }: Props) {
|
|||||||
/>
|
/>
|
||||||
</TabsContent>
|
</TabsContent>
|
||||||
<TabsContent value="code">
|
<TabsContent value="code">
|
||||||
<CodeTab
|
<CodeTab code={previewCode} setCode={() => {}} settings={settings} />
|
||||||
code={previewCode}
|
|
||||||
// TODO*
|
|
||||||
setCode={() => {}}
|
|
||||||
settings={settings}
|
|
||||||
/>
|
|
||||||
</TabsContent>
|
</TabsContent>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import { useProjectStore } from "../../store/project-store";
|
|||||||
function Variants() {
|
function Variants() {
|
||||||
const { head, commits, updateSelectedVariantIndex } = useProjectStore();
|
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) {
|
if (head === null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user