mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: show view demo button only if demoUrl is true
This commit is contained in:
+4
-1
@@ -322,7 +322,10 @@
|
||||
<Typography.Text variant="m-500" truncate>
|
||||
{name || data.template.name}
|
||||
</Typography.Text>
|
||||
<Button secondary size="s" external href={data.template.demoUrl}>View demo</Button>
|
||||
{#if data?.template?.demoUrl}
|
||||
<Button secondary size="s" external href={data.template.demoUrl}
|
||||
>View demo</Button>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
|
||||
<Image
|
||||
|
||||
Reference in New Issue
Block a user