Browse Source

fix: Set the default hook title only when creating a new hook #7210

pull/7218/head
Ramesh Mane 1 year ago
parent
commit
a07b390485
  1. 4
      packages/nc-gui/components/webhook/Editor.vue

4
packages/nc-gui/components/webhook/Editor.vue

@ -496,6 +496,9 @@ watch(
if (props.hook) {
setHook(props.hook)
onEventChange()
} else {
// Set the default hook title only when creating a new hook.
hookRef.title = getDefaultHookName(hooks.value)
}
},
{ immediate: true },
@ -509,7 +512,6 @@ onMounted(async () => {
} else {
hookRef.eventOperation = eventList.value[0].value.join(' ')
}
hookRef.title = getDefaultHookName(hooks.value)
onNotificationTypeChange()

Loading…
Cancel
Save