Allow skipSelect blueprints only when one blueprint exists (#17818)

This commit is contained in:
Callum Whyte
2025-01-20 20:27:54 +11:00
committed by Andy Butland
parent d1af59fdf0
commit 7552e315fb

View File

@@ -86,7 +86,7 @@ function contentCreateController($scope,
});
$scope.docType = docType;
if (blueprints.length) {
if (blueprintConfig.skipSelect) {
if (blueprintConfig.skipSelect && blueprints.length === 1) {
createFromBlueprint(blueprints[0].id);
} else {
$scope.selectContentType = false;