fix state name init for substates, thanks @masenf
This commit is contained in:
parent
bae98e80ed
commit
8fc8fd9ec7
@ -519,7 +519,7 @@ class BaseState(Base, ABC, extra=pydantic.Extra.allow):
|
||||
cls._handle_local_def()
|
||||
|
||||
# Generate a minified state name by converting state count to string
|
||||
if not cls._state_name:
|
||||
if not cls._state_name or cls._state_name in all_state_names:
|
||||
cls._state_name = generate_state_name()
|
||||
|
||||
# Validate the module name.
|
||||
|
Loading…
Reference in New Issue
Block a user