Skip to content

Commit

Permalink
fix: change default value of param configurators of init funtion
Browse files Browse the repository at this point in the history
  • Loading branch information
gene9831 committed Jun 14, 2024
1 parent 0ca8b19 commit 9783c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/design-core/src/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const defaultLifeCycles = {
}
}

export const init = ({ selector = '#app', registry = defaultRegistry, lifeCycles = {}, configurators = [] } = {}) => {
export const init = ({ selector = '#app', registry = defaultRegistry, lifeCycles = {}, configurators = {} } = {}) => {
const { beforeAppCreate, appCreated, appMounted } = lifeCycles

registerConfigurators(configurators)
Expand Down

0 comments on commit 9783c30

Please sign in to comment.