fix(editor): Remove all the Cloud Triggers from the Cloud Function node Functions dropdown (#69)

This commit is contained in:
Eric Tuvesson
2024-09-09 17:35:08 +02:00
committed by GitHub
parent cc79ea5f7e
commit 48541347f0

View File

@@ -57,10 +57,13 @@ export class CloudFunctionAdapter extends NodeTypeAdapter {
// Collect all cloud function components
const functionRequestNodes = ProjectModel.instance.getNodesWithType('noodl.cloud.request');
const functions = functionRequestNodes.map((r) => {
const component = r.owner.owner;
return component.fullName;
});
const functions = functionRequestNodes
.map((r) => {
const component = r.owner.owner;
return component.fullName;
})
// Remove all the Cloud Trigger functions
.filter((x) => !x.startsWith('/#__cloud__/__noodl_cloud_triggers__'));
ports.push({
plug: 'input',