kui-utils 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/index.js CHANGED
@@ -2000,11 +2000,14 @@ var resHandler = function (result, loader, callback, errorMessage, params) {
2000
2000
  callback(res);
2001
2001
  }
2002
2002
  catch (e) {
2003
+ loader.endLoading();
2003
2004
  loader.setError(errorMessage, err);
2004
2005
  }
2005
2006
  }
2006
- else
2007
+ else {
2008
+ loader.endLoading();
2007
2009
  loader.setError(errorMessage, err);
2010
+ }
2008
2011
  if ((params === null || params === void 0 ? void 0 : params.withEndLoading) || !params) {
2009
2012
  loader.endLoading();
2010
2013
  }