Fix JS errors for Nested Content in single mode
This commit is contained in:
committed by
Sebastiaan Janssen
parent
4acddb288a
commit
f4cd1c2f0c
@@ -277,6 +277,9 @@
|
||||
};
|
||||
|
||||
vm.getName = function (idx) {
|
||||
if (!model.value || !model.value.length) {
|
||||
return "";
|
||||
}
|
||||
|
||||
var name = "";
|
||||
|
||||
@@ -326,6 +329,10 @@
|
||||
};
|
||||
|
||||
vm.getIcon = function (idx) {
|
||||
if (!model.value || !model.value.length) {
|
||||
return "";
|
||||
}
|
||||
|
||||
var scaffold = getScaffold(model.value[idx].ncContentTypeAlias);
|
||||
return scaffold && scaffold.icon ? iconHelper.convertFromLegacyIcon(scaffold.icon) : "icon-folder";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user