Skip to content

Database diagrams editor that allows you to visualize and design your DB with a single query.

fix(template): separator in case of empty url (#355)

Guy Ben-Aharon180886c5882f
diff --git a/src/pages/template-page/template-page.tsx b/src/pages/template-page/template-page.tsx
index 2eb2ad63..596b1a5f 100644
--- a/src/pages/template-page/template-page.tsx
+++ b/src/pages/template-page/template-page.tsx
@@ -249,21 +249,23 @@ const TemplatePageComponent: React.FC = () => {
</div>
<Separator />
{template.url ? (
- <div>
- <h4 className="mb-1 text-base font-semibold md:text-left">
- Url
- </h4>
+ <>
+ <div>
+ <h4 className="mb-1 text-base font-semibold md:text-left">
+ Url
+ </h4>
- <Link
- className="break-all text-sm text-muted-foreground"
- href={`${template.url}?ref=chartdb`}
- target="_blank"
- >
- {template.url}
- </Link>
- </div>
+ <Link
+ className="break-all text-sm text-muted-foreground"
+ href={`${template.url}?ref=chartdb`}
+ target="_blank"
+ >
+ {template.url}
+ </Link>
+ </div>
+ <Separator />
+ </>
) : null}
- <Separator />
<div>
<h4 className="mb-1 text-base font-semibold md:text-left">
Tags