We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c03904 commit 05ee5b4Copy full SHA for 05ee5b4
www/core/lib/sitesfactory.js
@@ -122,13 +122,14 @@ angular.module('mm.core')
122
// Needs a generator instead of keyPath.
123
angular.forEach(indexes, function(index) {
124
if (index.keyPath) {
125
+ var path = index.keyPath;
126
index.generator = function(obj) {
127
var arr = [];
- angular.forEach(index.keyPath, function(keyName) {
128
+ angular.forEach(path, function(keyName) {
129
arr.push(obj[keyName]);
130
});
131
return arr;
- }
132
+ };
133
delete index.keyPath;
134
}
135
0 commit comments