Skip to content

Commit

Permalink
fix(MDCRenderer): app breaking when component is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Nov 19, 2024
1 parent 8913268 commit 8531b09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/runtime/components/MDCRenderer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,10 @@ const resolveVueComponent = (component: any) => {
return _component
}
if (typeof _component === 'string') {
return _component
}
if ('setup' in _component) {
return defineAsyncComponent(() => new Promise(resolve => resolve(_component)))
}
Expand Down

0 comments on commit 8531b09

Please sign in to comment.