flowcomponents icon indicating copy to clipboard operation
flowcomponents copied to clipboard

Issues with multiple outputs in Function component

Open khaledkhalil94 opened this issue 8 years ago • 6 comments

Hello,

I've noticed couple issues with the Function component when you choose multiple outputs.

Tested on a fresh install of Flow v5.1

1- All output connection links are visually removed once you change the output number. 2- If you don't specify an index in the send function, the component sends data to the first output rather than all outputs.

Thanks.

khaledkhalil94 avatar Aug 24 '18 15:08 khaledkhalil94

Hi @khaledkhalil94,

  1. yes https://github.com/totaljs/flowcomponents/blob/master/function/function.js#L54 because there is a problem with comparision. But yes, we can improve it...
  2. this depends on the data, which type of data are you sending?

petersirka avatar Aug 25 '18 11:08 petersirka

String

khaledkhalil94 avatar Aug 26 '18 18:08 khaledkhalil94

Sorry for delay. I'm not author of this component, but I'll fix it today/tomorrow later. I have contacted author but unfortunately the author doesn't have any time for it.

I'll give you feedback.

petersirka avatar Aug 31 '18 14:08 petersirka

I have fixed it. I'll think about:

All output connection links are visually removed once you change the output number.

Because it's a bit complicated to compare outputs but I'll add a support for it into the Flow core.

petersirka avatar Sep 01 '18 08:09 petersirka

Hello, just wondering if there has been any updates to the links issue ?

khaledkhalil94 avatar Sep 27 '18 14:09 khaledkhalil94

Hi @khaledkhalil94, it's fixed. Please download the Flow from https://github.com/totaljs/flow and let me know. BTW: you need to update all components.

petersirka avatar Sep 27 '18 14:09 petersirka