Przeglądaj źródła

fix(backendsrv): remove invalid check

bergquist 9 lat temu
rodzic
commit
90c6b04361
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      public/app/core/services/backend_srv.js

+ 1 - 1
public/app/core/services/backend_srv.js

@@ -106,7 +106,7 @@ function (angular, _, coreModule, config) {
         }
 
         //populate error obj on Internal Error
-        if (_.isString(err.data) && err.status === 500 && !err.data) {
+        if (_.isString(err.data) && err.status === 500) {
           err.data = {
             error: err.statusText
           };