diff --git a/modules/ve/dm/lineardata/ve.dm.ElementLinearData.js b/modules/ve/dm/lineardata/ve.dm.ElementLinearData.js index f02dd99341..b608208d05 100644 --- a/modules/ve/dm/lineardata/ve.dm.ElementLinearData.js +++ b/modules/ve/dm/lineardata/ve.dm.ElementLinearData.js @@ -323,7 +323,7 @@ ve.dm.ElementLinearData.prototype.getAnnotationIndexesFromOffset = function ( of if ( typeof element === 'string' ) { return []; } else { - return element.annotations || element[1]; + return element.annotations || element[1] || []; } };