diff --git a/src/dom_components/model/Components.js b/src/dom_components/model/Components.js index 662dd73a5..9b721d7b1 100644 --- a/src/dom_components/model/Components.js +++ b/src/dom_components/model/Components.js @@ -28,9 +28,8 @@ const getComponentsFromDefs = (items, all = {}, opts = {}) => { const newComponents = getComponentsFromDefs(components, all); if (isFunction(result.components)) { - if (result.components().length > 0) { - result.components(newComponents); - } + const cmps = result.components(); + cmps.length > 0 && cmps.reset(newComponents); } else { result.components = newComponents; }