From 75db6b48782f972b8d1987afb6054a31c00f4ade Mon Sep 17 00:00:00 2001 From: Wadim Kalmykov <36057469+w-4@users.noreply.github.com> Date: Thu, 24 Sep 2020 22:30:10 +0700 Subject: [PATCH] Remove call to undefined method handleErrors (#94) --- extensions/tags/js/src/admin/components/EditTagModal.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/extensions/tags/js/src/admin/components/EditTagModal.js b/extensions/tags/js/src/admin/components/EditTagModal.js index b237c9247..2475861eb 100644 --- a/extensions/tags/js/src/admin/components/EditTagModal.js +++ b/extensions/tags/js/src/admin/components/EditTagModal.js @@ -122,12 +122,11 @@ export default class EditTagModal extends Modal { this.loading = true; + // Errors aren't passed to the modal onerror handler here. + // This is done for better error visibility on smaller screen heights. this.tag.save(this.submitData()).then( () => this.hide(), - response => { - this.loading = false; - this.handleErrors(response); - } + () => this.loading = false ); }