Explorar o código

HUE-8768 [editor] Fix simplePost with no options.

jdesjean %!s(int64=6) %!d(string=hai) anos
pai
achega
058e5ed135
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/core/src/desktop/js/api/apiHelper.js

+ 1 - 1
desktop/core/src/desktop/js/api/apiHelper.js

@@ -418,7 +418,7 @@ class ApiHelper {
     const request = $.post({
       url: url,
       data: data,
-      dataType: options.dataType
+      dataType: options && options.dataType
     })
       .done(data => {
         if (self.successResponseIsError(data)) {