diff --git a/resources/js/components/terms/PublishForm.vue b/resources/js/components/terms/PublishForm.vue index 2f97fe20c1d..bb393ccbd86 100644 --- a/resources/js/components/terms/PublishForm.vue +++ b/resources/js/components/terms/PublishForm.vue @@ -342,7 +342,7 @@ export default { saving: this.savingRef, }) .through([ - new BeforeSaveHooks('entry', { + new BeforeSaveHooks('term', { taxonomy: this.taxonomyHandle, values: this.values, }), @@ -351,7 +351,7 @@ export default { published: this.published, _localized: this.localizedFields, }), - new AfterSaveHooks('entry', { + new AfterSaveHooks('term', { taxonomy: this.taxonomyHandle, reference: this.initialReference, }), diff --git a/resources/js/components/ui/Publish/Form.vue b/resources/js/components/ui/Publish/Form.vue index 977b8066424..d3f156de160 100644 --- a/resources/js/components/ui/Publish/Form.vue +++ b/resources/js/components/ui/Publish/Form.vue @@ -62,9 +62,7 @@ function save() { new Pipeline() .provide({ container, errors, saving }) .through([ - new BeforeSaveHooks('entry'), new Request(props.submitUrl, props.submitMethod), - new AfterSaveHooks('entry'), ]) .then((response) => { Statamic.$toast.success(__('Saved'));