Skip to content

Commit

Permalink
alias is changed. We need to compare with label instead
Browse files Browse the repository at this point in the history
  • Loading branch information
madsrasmussen committed Sep 21, 2021
1 parent f7b485a commit 4260503
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@
// remove all tabs except the specified tab
var tabs = scaffold.variants[0].tabs;
var tab = _.find(tabs, function (tab) {
return tab.id !== 0 && (tab.alias.toLowerCase() === contentType.ncTabAlias.toLowerCase() || contentType.ncTabAlias === "");
return tab.id !== 0 && (tab.label.toLowerCase() === contentType.ncTabAlias.toLowerCase() || contentType.ncTabAlias === "");
});
scaffold.variants[0].tabs = [];
if (tab) {
Expand Down

0 comments on commit 4260503

Please sign in to comment.