Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Error: Uncaught TypeError: Cannot read property of undefined

Found in

EPiServer.CMS.UI 11.12.1

Fixed in

EPiServer.CMS.UI 11.13.0

(Or a related package)

Created

Nov 12, 2018

Updated

Nov 19, 2018

Area

CMS UI

State

Closed, Fixed and tested


Description

Steps to reproduce
1. Create a new Standard page.
2. Open 'Teaser image' editor.
3. Click the [...] button.
4. Select 'For This Page' folder.
5. Upload an image.
6. Select the image and press OK (Note: The image value is filled in the 'Teaser image' field).
7. Click the [...] button to edit the value.

Expected:
No error in the console.

Actual:
These errors appear in the console:
MediaSelector.js:2 Uncaught TypeError: Cannot read property 'typeIdentifier' of undefined
at MediaSelector.js:2
at Array.some (<anonymous>)
at Object._dataChanged (MediaSelector.js:2)
at _21b (epi.js:2)
at Object._217._watchCallbacks (epi.js:2)
at epi.js:2
at when (dojo.js:15)
at Object.set (epi.js:2)
at Object._updateSelection (widgets.js:2)
at Object._updateCommands (widgets.js:2)

widgets.js:2 Uncaught TypeError: Cannot read property 'data' of undefined
at Object._itemSelected (widgets.js:2)
at Object._onSelect (widgets.js:2)
at Object._onSelectionChanged (widgets.js:2)
at HTMLDivElement.<anonymous> (dojo.js:15)
at Function.on.emit (dojo.js:15)
at Object._fireSelectionEvent (widgets.js:2)
at Object._fireSelectionEvents (widgets.js:2)
at Object.clearSelection (widgets.js:2)
at Object._setSelectedListItemsAttr (widgets.js:2)
at Object.set (widgets.js:2)