mirror of
https://github.com/fluxscape/fluxscape.git
synced 2026-01-12 07:12:54 +01:00
fix(editor): Remove all the Cloud Triggers from the Cloud Function node Functions dropdown (#69)
This commit is contained in:
@@ -57,10 +57,13 @@ export class CloudFunctionAdapter extends NodeTypeAdapter {
|
|||||||
|
|
||||||
// Collect all cloud function components
|
// Collect all cloud function components
|
||||||
const functionRequestNodes = ProjectModel.instance.getNodesWithType('noodl.cloud.request');
|
const functionRequestNodes = ProjectModel.instance.getNodesWithType('noodl.cloud.request');
|
||||||
const functions = functionRequestNodes.map((r) => {
|
const functions = functionRequestNodes
|
||||||
|
.map((r) => {
|
||||||
const component = r.owner.owner;
|
const component = r.owner.owner;
|
||||||
return component.fullName;
|
return component.fullName;
|
||||||
});
|
})
|
||||||
|
// Remove all the Cloud Trigger functions
|
||||||
|
.filter((x) => !x.startsWith('/#__cloud__/__noodl_cloud_triggers__'));
|
||||||
|
|
||||||
ports.push({
|
ports.push({
|
||||||
plug: 'input',
|
plug: 'input',
|
||||||
|
|||||||
Reference in New Issue
Block a user