Skip to content

Commit

Permalink
fix add button
Browse files Browse the repository at this point in the history
  • Loading branch information
myshell-joe committed Jan 21, 2025
1 parent 4d21ff5 commit 2dcaf75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/apps/web/src/stores/app/schema-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const SchemaProvider: React.FC<SchemaProviderProps> = ({
}

if (type === 'x-intro-config') {
return stateConfigSchema;
return xStateConfigSchema;
}

if (type === 'state-config') {
Expand Down
3 changes: 3 additions & 0 deletions web/apps/web/src/stores/app/utils/data-transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,17 +226,20 @@ export const genAutomata: (props: {
transitions[transitionKey] = [];
}
transitions[transitionKey].push({
display_name: transitionData.name,
target: transitionData.target,
condition: transitionData.condition,
target_inputs: transitionData.target_inputs,
});
} else if (transitionData.type === TransitionTargetEnum.TIMER) {
transitions[transitionData.key] = {
display_name: transitionData.name,
target: transitionData.target,
target_inputs: transitionData.target_inputs,
};
} else {
transitions[transitionKey] = {
display_name: transitionData.name,
target: transitionData.target,
target_inputs: transitionData.target_inputs,
};
Expand Down

0 comments on commit 2dcaf75

Please sign in to comment.