Skip to content

Commit

Permalink
fix(fsm): fix order of initFsmInstance args
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadhonarvar authored and alimd committed Mar 17, 2023
1 parent 4cdfcc6 commit 3b60138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/fsm/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export const _execAction = (
}
};

export const initFsmInstance = (constructorId: string, instanceId: string): void => {
export const initFsmInstance = (instanceId: string, constructorId: string): void => {
logger.logMethodArgs('initializeMachine', {constructorId, instanceId});
const {initial, context} = _getFsmConstructor(constructorId).config;
contextProvider.setValue<FsmInstance>(
Expand Down

0 comments on commit 3b60138

Please sign in to comment.