Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: fix linter

Stevenf9942002f9a9
diff --git a/web/src/components/CreateWebhookDialog.tsx b/web/src/components/CreateWebhookDialog.tsx
index f573f9547..8394aaf8a 100644
--- a/web/src/components/CreateWebhookDialog.tsx
+++ b/web/src/components/CreateWebhookDialog.tsx
@@ -33,11 +33,7 @@ const CreateWebhookDialog: React.FC<Props> = (props: Props) => {
.getWebhook({
id: webhookId,
})
- .then(({ webhook }) => {
- if (!webhook) {
- return;
- }
-
+ .then((webhook) => {
setState({
name: webhook.name,
url: webhook.url,