Hi @Intervik
Just realized you already gave the JS error.
The refresh
function should indeed exist as it is given to the wp.media.view.AttachmentFilters.All.prototype
object.
Can you enter the above into your console log and look at the object that is returned, does it contain a function called ‘refresh’?
Thanks
E