In last update fetchRelatedRecords is using Javascript Set to make ids unique, but to converting it back to Array it has got a .slice() , so it's causing an error, because Set has no slice function
here is my suggested code: ExportButton.js
//old Code:
var ids = new Set(sanitizedData).slice();
// new Code
var ids = Array.from(new Set(sanitizedData))
In last update fetchRelatedRecords is using Javascript Set to make ids unique, but to converting it back to Array it has got a .slice() , so it's causing an error, because Set has no slice function
here is my suggested code: ExportButton.js
//old Code:
var ids = new Set(sanitizedData).slice();
// new Code
var ids = Array.from(new Set(sanitizedData))