From af10bd7dfc0bc2c6818b9d2cafc6bbb9af9f4e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 28 Apr 2020 08:57:09 +0200 Subject: [PATCH] default variant would never have segment. And if we work only with segmentation the default variant does not have language.isDefault. --- .../components/content/umbtabbedcontent.directive.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbtabbedcontent.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbtabbedcontent.directive.js index c703311c8e..97e837c523 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbtabbedcontent.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbtabbedcontent.directive.js @@ -122,7 +122,8 @@ this.content = $scope.content; if($scope.variantNodeModel) { $scope.defaultVariant = _.find($scope.variantNodeModel.variants, variant => { - return variant.language && variant.language.isDefault; + // defaultVariant will never have segment. Wether it has a language or not depends on the setup. + return !variant.segment && ((variant.language && variant.language.isDefault) || (!variant.language)); }); }