Closed NicoEngler closed 5 years ago
Line 28, you're filtering it twice since you're already doing it on line 23? am.render(am.getAll().filter(assets));
Works when I'm doing it like so: am.render(assets);
Awesome, thanks for the catch! @noogen
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Hi, I am trying to build a plugin which sets up the asset manager as a SVG repository. If the user selects a SVG, the asset manager opens. Next, the user can replace the current SVG with the one selected. Most of the code I am using is found on: https://grapesjs.com/docs/modules/Assets.html#customization
Demo: https://jsfiddle.net/9vgf573s/12/
Problem:
What am I doing wrong?
PS: Replacing does not seem to work either but I have not really looked into it because the current problem makes it annoying to debug.
Cheers