try making a new filters array and reassigning it ...
# suitescript
j
try making a new filters array and reassigning it
Copy code
var copy = oSearch.filters.slice(); // makes it clear to reader that this is different array than oSeach.filters
copy.forEach(function(element) {
  // edit the filter
});
oSearch.filters = copy;