Problem/Motivation
This error occurs when we click on 'Insert Selected' button from the media library without selecting or uploading a media.
Steps to reproduce
- Go to any add/edit node page with body field.
- Click on the media library button from the CKeditor
- Click on the 'Insert Media' button from the image media type tab
It won't show any error in the frontend but logs an error message in watchdog and in browser console.
We see the 'No items selected' message only after switching media tabs.