Fixes issue where null webhook would cause failure

This commit is contained in:
wess committed 2024-02-26 13:34:37 -05:00
1 parent 2ed97400fe
commit 98b16920a8
2 files changed
+3 -4

No files matched your search

@@ -41,8 +41,6 @@
const projectId = $page.params.project;
$: $updateCommandGroupRanks({ webhooks: 20, domains: 10 });
console.log(data.webhooks);
</script>
<svelte:head>
@@ -101,7 +99,6 @@
link
on:click={(e) => {
e.preventDefault();
console.log(webhook);
selectedWebhook = webhook;
showFailed = true;
}}>Details</Button>
@@ -11,7 +11,9 @@
export let webhook: Models.Webhook;
const projectId = $page.params.project;
const webhookPath = `${base}/console/project-${projectId}/settings/webhooks/${webhook.$id}`;
const webhookPath = webhook
? `${base}/console/project-${projectId}/settings/webhooks/` + (webhook['$id'] ?? '')
: '';
</script>
<Modal title="Webhook error" headerDivider={false} bind:show size="big">