Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): use optional chaining

Ramesh Maneb4f79f7a46e4
diff --git a/packages/nc-gui/components/webhook/index.vue b/packages/nc-gui/components/webhook/index.vue
index 1a0894d8d0..a0fa329841 100644
--- a/packages/nc-gui/components/webhook/index.vue
+++ b/packages/nc-gui/components/webhook/index.vue
@@ -654,7 +654,7 @@ async function saveHooks() {
if (hookRef.id) {
res = await api.dbTableWebhook.update(hookRef.id, {
...hookRef,
- title: hookRef.title.trim(),
+ title: hookRef.title?.trim(),
operation: operations,
notification: {
...hookRef.notification,
@@ -664,7 +664,7 @@ async function saveHooks() {
} else {
res = await api.dbTableWebhook.create(meta.value!.id!, {
...hookRef,
- title: hookRef.title.trim(),
+ title: hookRef.title?.trim(),
operation: operations,
notification: {
...hookRef.notification,