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

This commit is contained in:
Ramesh Mane
2023-12-18 10:58:44 +05:30
parent 62408cbcec
commit a07b390485

View File

@@ -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()