Skip to content

Commit

Permalink
refactor: simplify conditional rendering in VariablePage component
Browse files Browse the repository at this point in the history
  • Loading branch information
kriptonian1 committed Jan 4, 2025
1 parent d6e3b97 commit e08c79f
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ function VariablePage({
</div>
</CollapsibleTrigger>
<CollapsibleContent className="h-full w-full gap-y-24 rounded-b-lg bg-[#232424] p-4">
{variable.values ? (
<Table className="h-full w-full">
{variable.values ? <Table className="h-full w-full">
<TableHeader className="h-[3.125rem] w-full">
<TableRow className="h-[3.125rem] w-full hover:bg-[#232424]">
<TableHead className="h-full w-[10.25rem] border-2 border-white/30 text-base font-bold text-white">
Expand All @@ -202,10 +201,7 @@ function VariablePage({
</TableRow>
))}
</TableBody>
</Table>
) : (
<></>
)}
</Table> : null}
</CollapsibleContent>
</Collapsible>
</ContextMenuTrigger>
Expand Down

0 comments on commit e08c79f

Please sign in to comment.