don't open splitview when publishing

This commit is contained in:
Mads Rasmussen
2018-02-19 19:52:13 +01:00
parent 1de2d536c2
commit fecb5e7979

View File

@@ -152,9 +152,11 @@
$scope.content.apps[0].active = true;
// create new editor for split view
var editor = {};
editor.content = $scope.content;
$scope.editors.push(editor);
if($scope.editors.length === 0) {
var editor = {};
editor.content = $scope.content;
$scope.editors.push(editor);
}
}