mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 01:36:51 +00:00
fix: Set the default hook title only when creating a new hook #7210
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user