Fixes: U4-5932 Grid editor has JS errors

This commit is contained in:
Shannon
2015-02-19 11:43:08 +01:00
parent b73c7fbb16
commit 20ceceffe0

View File

@@ -509,8 +509,11 @@ angular.module("umbraco")
if(area.grid > 0){
var currentArea = row.areas[areaIndex];
area.config = currentArea.config;
area.styles = currentArea.styles;
if (currentArea) {
area.config = currentArea.config;
area.styles = currentArea.styles;
}
//copy over existing controls into the new areas
if(row.areas.length > areaIndex && row.areas[areaIndex].controls){