diff --git a/templates/hooks/after_prepare/update_platform_config.js b/templates/hooks/after_prepare/update_platform_config.js index 2fb40ce..7398f30 100755 --- a/templates/hooks/after_prepare/update_platform_config.js +++ b/templates/hooks/after_prepare/update_platform_config.js @@ -170,7 +170,7 @@ var platformConfig = (function(){ getConfigFilesByTargetAndParent: function (platform) { var configFileData = this.getConfigXml().findall('platform[@name=\'' + platform + '\']/config-file'); - return _.indexBy(configFileData, function(item) { + return _.keyBy(configFileData, function(item) { var parent = item.attrib.parent; //if parent attribute is undefined /* or */, set parent to top level elementree selector if(!parent || parent === '/*' || parent === '*/') {