mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
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:
parent
6c14308dc6
commit
ba4ea9c024
|
@ -16,7 +16,14 @@ LoggerProxy.init({
|
||||||
const credentialTypes = Object.values(loader.credentialTypes).map((data) => data.type);
|
const credentialTypes = Object.values(loader.credentialTypes).map((data) => data.type);
|
||||||
|
|
||||||
const nodeTypes = Object.values(loader.nodeTypes)
|
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) => {
|
.flatMap((nodeData) => {
|
||||||
const allNodeTypes = NodeHelpers.getVersionedNodeTypeAll(nodeData);
|
const allNodeTypes = NodeHelpers.getVersionedNodeTypeAll(nodeData);
|
||||||
return allNodeTypes.map((element) => element.description);
|
return allNodeTypes.map((element) => element.description);
|
||||||
|
|
Loading…
Reference in a new issue