transitions icon indicating copy to clipboard operation
transitions copied to clipboard

Remove trasition fail when state is Enum

Open hookokoko opened this issue 1 year ago • 0 comments

Thank you for taking the time to report a bug! Your support is essential for the maintenance of this project. Please fill out the following fields to ease bug hunting and resolving this issue as soon as possible:

Describe the bug #162 In this issue, add a feature to remove transitions.

It will remove trasition fail when the source/target is of Enum type, because Enum('source') is not equal to 'source'. This could be confusing otherwise.

I think this situation also needs to be considered.

target_source = source.name if hasattr(source, 'name') else source if source != "*" else ""
target_dest = dest.name if hasattr(dest, 'name') else dest if dest != "*" else ""

hookokoko avatar Aug 28 '24 12:08 hookokoko