Skip to content

Commit

Permalink
fix: mergeOptions from not defined, closes #1491
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Jun 28, 2021
1 parent 7ce7ba5 commit 8004d06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/app-backend-vue3/src/components/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ function mergeOptions (
from: any,
instance: ComponentInstance
) {
if (!from) return to

if (typeof from === 'function') {
from = from.options
}
Expand Down

0 comments on commit 8004d06

Please sign in to comment.