Skip to content

Commit

Permalink
Merge pull request #439 from illa-family/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
AruSeito authored Nov 4, 2022
2 parents 7699154 + 9d9c70d commit 59e4560
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/builder/src/hooks/useInitApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export const useInitBuilderApp = (model: IllaMode) => {
response.data.actions,
)
dispatch(executionActions.startExecutionReducer())
dispatch(configActions.resetConfig())
if (model === "edit") {
dispatch(configActions.resetConfig())
}
if (model === "edit" && response.data.actions.length > 0) {
dispatch(configActions.changeSelectedAction(response.data.actions[0]))
}
Expand Down

0 comments on commit 59e4560

Please sign in to comment.