diff --git a/httpdocs/assets/js/safekat/components/ajax.js b/httpdocs/assets/js/safekat/components/ajax.js index 8a92c701..98313bbc 100644 --- a/httpdocs/assets/js/safekat/components/ajax.js +++ b/httpdocs/assets/js/safekat/components/ajax.js @@ -59,6 +59,7 @@ class Ajax { error: this.error }) } + getPromise() { if (this.jqXHR) { this.jqXHR.abort(); @@ -71,7 +72,7 @@ class Ajax { data: this.data, headers: this.headers, success: (response) => { - if (this.success) this.success(response); + if (this.success) this.success(response); resolve(response); }, error: (xhr) => {