You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for such a wonderful work!. I was playing around with the derived attributes and I found the following error when you are trying to use it.
Uncaught TypeError: Object [object global] has no method 'splice'
My solution was to omit the removeAt key in the deriveAttributes function and it worked.
deriveAttributes = function(record, derivedAttributes, f) {
var k, v, _ref, _ref2;
console.log(derivedAttributes);
for (k in derivedAttributes) {
if(k!="removeAt"){ // I Included this
v = derivedAttributes[k];
record[k] = (_ref = v(record)) != null ? _ref : record[k];
}
}
for (k in record) {
if (!__hasProp.call(record, k)) continue;
if ((_ref2 = record[k]) == null) {
record[k] = "null";
}
}
return f(record);
};
Hope its the right approach,
Thanks,
Andrés.
The text was updated successfully, but these errors were encountered:
Hello,
First of all, thanks for such a wonderful work!. I was playing around with the derived attributes and I found the following error when you are trying to use it.
Uncaught TypeError: Object [object global] has no method 'splice'
My solution was to omit the removeAt key in the deriveAttributes function and it worked.
deriveAttributes = function(record, derivedAttributes, f) {
var k, v, _ref, _ref2;
console.log(derivedAttributes);
for (k in derivedAttributes) {
if(k!="removeAt"){ // I Included this
v = derivedAttributes[k];
record[k] = (_ref = v(record)) != null ? _ref : record[k];
}
}
for (k in record) {
if (!__hasProp.call(record, k)) continue;
if ((_ref2 = record[k]) == null) {
record[k] = "null";
}
}
return f(record);
};
Hope its the right approach,
Thanks,
Andrés.
The text was updated successfully, but these errors were encountered: