Skip to content

Commit

Permalink
Merge pull request #52 from QuickCorp/v2.3
Browse files Browse the repository at this point in the history
fixed Uncaught (in promise) in rendering process
  • Loading branch information
jeanmachuca committed Apr 17, 2021
2 parents 6af5835 + ec69911 commit e71c508
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions QCObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -3018,8 +3018,7 @@
var tagFilter = (!rebuildObjects) ? ("component:not([loaded])") : ("component");
var d = this;
var _buildComponent = function(components) {
var componentsBuiltWith = [];
components.map (function (_component_, _c){
var componentsBuiltWith = components.map (function (_component_, _c){
_component_ = components[_c];
var data = {};
var attributenames = components[_c].getAttributeNames().filter(function(a) {
Expand Down Expand Up @@ -3155,8 +3154,10 @@
var _ret_;
_ret_ = componentDone.call(newComponent, standardResponse);
return Promise.resolve(_ret_);
}).catch(function(e) {
logger.debug("Something wrong rendering the component "+newComponent.name);
});
componentsBuiltWith.push(newComponent);
return newComponent;
});
return componentsBuiltWith;
};
Expand Down

0 comments on commit e71c508

Please sign in to comment.