Skip to content

Commit

Permalink
feat(viewer): allow async handler components
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <[email protected]>
  • Loading branch information
pulsejet committed Nov 27, 2023
1 parent 76510f3 commit 061bacb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ export default {
}
// checking valid handler component data
if ((!handler.component || typeof handler.component !== 'object')) {
if ((!handler.component || (typeof handler.component !== 'object' && typeof handler.component !== 'function'))) {
logger.error('The following handler doesn\'t have a valid component', { handler })
return
}
Expand Down

0 comments on commit 061bacb

Please sign in to comment.