fix: qr on sites.

This commit is contained in:
Darshan
2024-12-31 10:55:06 +05:30
parent 61bb398842
commit 8af1ffcfa8
@@ -17,6 +17,8 @@
export let proxyRuleList: Models.ProxyRuleList = { total: 0, rules: [] };
let show = false;
const siteUrl =
deployment.domain ?? (proxyRuleList.total ? proxyRuleList.rules[0].domain : undefined);
$: totalSize = humanFileSize((deployment?.buildSize ?? 0) + (deployment?.size ?? 0));
</script>
@@ -112,6 +114,6 @@
</Layout.Stack>
</Card>
{#if show && deployment.domain}
<OpenOnMobileModal bind:show siteURL={deployment.domain} />
{#if show && siteUrl}
<OpenOnMobileModal bind:show siteURL={siteUrl} />
{/if}