I have the following inline js resource, which worked fine in Brooklyn but now is throwing an error in spark. The error is “There was a problem rendering a component of type skuidpage: Cannot read property ‘split’ of null”. The error is being thrown on the line bolded in the code below.
What’s the solution, here?
//Custom Formulas//
(function (skuid){
//Shortcuts & Global Variables//
var $ = skuid.$;
//Formulas//
var formulas = {
‘REMOVE_TEXT’: M
function (string_to_search, string_to_remove) {
return string_to_search.split(string_to_remove).join(‘’);
},
{numArgs: 2, returnType: ‘text’}
]
};
//Register Formulas//
$.each(formulas,function(name,formulaArray){ skuid.formula.Formula(name, formulaArrayu0], formulaArrayA1]); });
})(skuid);```