mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Fixes issue where null webhook would cause failure
This commit is contained in:
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">
|
||||
|
||||
Reference in new issue
Block a user