From f0caa6be4be5b2cf98ddd08e3f10e1831bd59cbb Mon Sep 17 00:00:00 2001 From: David Sheiles Date: Thu, 28 Feb 2019 17:57:05 +1100 Subject: [PATCH] Update null check --- .../src/common/services/navigation.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/services/navigation.service.js b/src/Umbraco.Web.UI.Client/src/common/services/navigation.service.js index 5933d6b039..917948e64d 100644 --- a/src/Umbraco.Web.UI.Client/src/common/services/navigation.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/services/navigation.service.js @@ -32,7 +32,7 @@ function navigationService($routeParams, $location, $q, $timeout, $injector, eve var currentEditorState = editorState.getCurrent() console.log("currentEditorState", currentEditorState); - if (currentEditorState != null && currentEditorState.id === args.node.id) { + if (currentEditorState && currentEditorState.id === args.node.id) { //current page is loaded, so navigate to root var section = appState.getSectionState("currentSection"); $location.path("/" + section);