fix: Apply SpecialNodeParameters to the types generated for the frontend (no-changelog) (#4715)

fix: apply SpecialNodeParameters to the types generated for the frontend (no-changelog)
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2022-11-24 15:52:15 +01:00 committed by GitHub
parent 6c14308dc6
commit ba4ea9c024
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,14 @@ LoggerProxy.init({
const credentialTypes = Object.values(loader.credentialTypes).map((data) => data.type);
const nodeTypes = Object.values(loader.nodeTypes)
.map((data) => data.type)
.map((data) => {
const nodeType = NodeHelpers.getVersionedNodeType(data.type);
const applyParameters = NodeHelpers.getSpecialNodeParameters(nodeType);
if (applyParameters.length) {
nodeType.description.properties.unshift(...applyParameters);
}
return data.type;
})
.flatMap((nodeData) => {
const allNodeTypes = NodeHelpers.getVersionedNodeTypeAll(nodeData);
return allNodeTypes.map((element) => element.description);