mkhstar / suneditor-react

A React Component for SunEditor (WYSIWYG editor)
http://suneditor.com/
424 stars 105 forks source link

Uncaught Error: [SUNEDITOR.fileBrowser.drawList.fail] cause : "Cannot read properties of undefined (reading 'length') #332

Open FaizAmin99 opened 1 year ago

FaizAmin99 commented 1 year ago

I have used Suneditor in my project, and the imageGallery is showing the error: Uncaught Error: [SUNEDITOR.fileBrowser.drawList.fail] cause : "Cannot read properties of undefined (reading 'length')

The response of imageGalleryUrl is correct, as well as its' length (I'm also attaching screenshots of the console.logs). But whenever I click on the imageGalleryButton, the frontend is Empty and the error is showing.

I already have updated Suneditor, all the other buttonList are working fine, and also the API is working correctly too as it is fetching imageUrl correctly.

image

image

image

image

image

Thanks for your help and efforts