fix entity look up

This commit is contained in:
Mads Rasmussen
2017-02-02 11:28:56 +01:00
parent 14b96da588
commit 77a91bc017

View File

@@ -72,8 +72,7 @@ angular.module("umbraco").controller("Umbraco.Overlays.TreePickerController",
$scope.enableSearh = true;
//if a alternative startnode is used, we need to check if it is a container
if (dialogOptions.startNodeId) {
if (dialogOptions.startNodeId !== "-1") {
entityResource.getById(dialogOptions.startNodeId, entityType).then(function (node) {
if (node.metaData.IsContainer) {
openMiniListView(node);