Merge pull request #2556 from dawoe/temp-U4-11167

U4-11167 Fixes rare syncTree error
This commit is contained in:
Shannon Deminick
2018-04-06 14:46:23 +10:00
committed by GitHub

View File

@@ -288,9 +288,12 @@ function navigationService($rootScope, $routeParams, $log, $location, $q, $timeo
throw "args.tree cannot be null";
}
if (mainTreeEventHandler) {
//returns a promise
return mainTreeEventHandler.syncTree(args);
if (mainTreeEventHandler) {
if (mainTreeEventHandler.syncTree) {
//returns a promise,
return mainTreeEventHandler.syncTree(args);
}
}
//couldn't sync