diff --git a/src/Umbraco.Web.UI.Client/src/views/content/apps/content/content.controller.js b/src/Umbraco.Web.UI.Client/src/views/content/apps/content/content.controller.js index bbe09e1e1426..66747a869727 100644 --- a/src/Umbraco.Web.UI.Client/src/views/content/apps/content/content.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/content/apps/content/content.controller.js @@ -8,8 +8,8 @@ // (i.e. variant.apps[contentApp].viewModel = variant) //so instead since we already have access to the content, we can just get the variant directly by the index. - var unbindLanguageWatcher; - var unbindSegmentWatcher; + var unbindLanguageWatcher = function() {}; + var unbindSegmentWatcher = function() {}; var timeout = null; var vm = this; @@ -32,8 +32,6 @@ requestUpdate(); } }); - } else { - unbindLanguageWatcher = function() {} } unbindSegmentWatcher = $scope.$watch(function () {