Server Action Condition Then & Else Not In Sequence

Wappler Version : 2.4.2
Operating System : W10

Expected behavior

Condition step in server action should show THEN first and ELSE after that.

Actual behavior

When adding the step, THEN & ELSE appear in order.
But, after saving or adding more steps, it randomly reverses this order to show ELSE first and THEN after it.

How to reproduce

image
Try adding a condition step. Add some steps to then/else section or just in then. Save and change server connects/refresh to see the reversed sections.
There are no exact steps to reproduce this & this bug has been here since ages, just couldn’t get around to post it.

Its really really annoying while working on big server actions. This makes it very difficult to keep track - some conditions show then & else, while some show else & then.
Please fix this. :pray: :grin:

3 Likes

Been reported before Sid but still remains, and yes I agree, very irritating; I have entered code in the wrong place on several occasions before due to this before realising they had reversed.

1 Like

Any update on this. It’s really annoying when I have several conditions and they’re all out of whack.

Agreed, when working in a visual editor, one innately relies on position of elements.