diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorheader.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorheader.directive.js index 5607251a7f36..efe65de8bf6f 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorheader.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorheader.directive.js @@ -239,12 +239,13 @@ Use this directive to construct a header inside the main editor window. if (scope.editorfor) { localizeVars.push(scope.editorfor); } - localizationService.localizeMany(localizeVars).then(function (data) { + localizationService.localizeMany(localizeVars).then(function(data) { setAccessibilityForEditor(data); scope.loading = false; }); + } else { + scope.loading = false; } - scope.goBack = function () { if (scope.onBack) { scope.onBack();