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 GitHub
parent 60e3fa97a9
commit d15b5b221e

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;