Skip to content

Commit 4260503

Browse files
committed
alias is changed. We need to compare with label instead
1 parent f7b485a commit 4260503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@
535535
// remove all tabs except the specified tab
536536
var tabs = scaffold.variants[0].tabs;
537537
var tab = _.find(tabs, function (tab) {
538-
return tab.id !== 0 && (tab.alias.toLowerCase() === contentType.ncTabAlias.toLowerCase() || contentType.ncTabAlias === "");
538+
return tab.id !== 0 && (tab.label.toLowerCase() === contentType.ncTabAlias.toLowerCase() || contentType.ncTabAlias === "");
539539
});
540540
scaffold.variants[0].tabs = [];
541541
if (tab) {

0 commit comments

Comments
 (0)