Skip to content

Commit

Permalink
test: fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 9, 2019
1 parent 12ec62e commit e7e1314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/apiApp.ts
Expand Up @@ -166,7 +166,7 @@ export function createAppAPI<HostNode, HostElement>(
rootProps?: Data | null
): any {
if (!isMounted) {
if (!isObject(rootProps)) {
if (rootProps != null && !isObject(rootProps)) {
__DEV__ &&
warn(`root props passed to app.mount() must be an object.`)
rootProps = null
Expand Down

0 comments on commit e7e1314

Please sign in to comment.