From e7a30d0a5dacad7e821714bc2376cdf7f438144b Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Wed, 26 Jun 2019 07:39:34 +0200 Subject: [PATCH] https://umbraco.visualstudio.com/D-Team%20Tracker/_workitems/edit/1085 - Fixes for gulp build --- .../src/common/resources/entity.resource.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/resources/entity.resource.js b/src/Umbraco.Web.UI.Client/src/common/resources/entity.resource.js index 5e6f1095e4..c85a85bb57 100644 --- a/src/Umbraco.Web.UI.Client/src/common/resources/entity.resource.js +++ b/src/Umbraco.Web.UI.Client/src/common/resources/entity.resource.js @@ -327,12 +327,12 @@ function entityResource($q, $http, umbRequestHelper) { * */ getAncestors: function (id, type, options) { - + var args = [ { id: id }, { type: type } ]; - if (options.dataTypeId) { + if (options && options.dataTypeId) { args.push({ dataTypeId: options.dataTypeId }); } @@ -361,7 +361,7 @@ function entityResource($q, $http, umbRequestHelper) { getChildren: function (id, type, options) { var args = [{ id: id }, { type: type }]; - if (options.dataTypeId) { + if (options && options.dataTypeId) { args.push({ dataTypeId: options.dataTypeId }); }