提交 04e893c8 编写于 作者: D Dirk Baeumer

Fixes #51661: Cannot convert undefined or null to object

上级 7ba27691
......@@ -324,9 +324,11 @@ TaskDefinitionRegistry.onReady().then(() => {
if (taskType.required) {
schema.required = taskType.required.slice();
}
for (let key of Object.keys(taskType.properties)) {
let property = taskType.properties[key];
schema.properties[key] = Objects.deepClone(property);
if (taskType.properties) {
for (let key of Object.keys(taskType.properties)) {
let property = taskType.properties[key];
schema.properties[key] = Objects.deepClone(property);
}
}
fixReferences(schema);
taskDefinitions.push(schema);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册