Estou tendo um problema que antes não tinha. Toda vez que atualizo o API, por causa de alguma coisa na minha ficha dá este erro: Error setting up custom sheet: TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object. I'm having a problem that I did not have before. Every time I update the API, because of something on my sheet gives this error: Error setting up custom sheet: TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object. <script type="text/worker">
// Calculate the total of Feat Points spent
on("change:repeating_magias", function() {
var pontosGastos = 0;
getSectionIDs("repeating_magias", function(featsArray) {
if(featsArray.length > 0) {
var names = _.map(featsArray, function(currentID) {
return "repeating_magias_"+currentID+"_mg_pm2";
});
getAttrs(names,function(v){
var sum = _.reduce(v,function(m,a){
return m+parseInt(a,10);
},0);
setAttrs({
"pdm": Math.floor(sum)
});
});
}
});
});
</script>