Merge commit 'd9b978cb82109b71c05d03807a8558ba1dc537a4' into feature-tabletop

This commit is contained in:
Stefan Zermatten
2023-09-04 11:02:13 +02:00
51 changed files with 505 additions and 173 deletions

View File

@@ -132,6 +132,9 @@ function insertNodeFromProperty(propId, ancestors, order, method) {
prop.order = order;
}
// Clean the props
props = cleanProps(props);
// Insert the props as library nodes
LibraryNodes.batchInsert(props);
return prop;
@@ -186,4 +189,11 @@ function assertSourceLibraryCopyPermission(props, method) {
});
}
function cleanProps(props) {
return props.map(prop => {
let schema = LibraryNodes.simpleSchema(prop);
return schema.clean(prop);
});
}
export default copyPropertyToLibrary;