Skip to content

Commit 061bacb

Browse files
committed
feat(viewer): allow async handler components
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
1 parent 76510f3 commit 061bacb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/Viewer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ export default {
811811
}
812812
813813
// checking valid handler component data
814-
if ((!handler.component || typeof handler.component !== 'object')) {
814+
if ((!handler.component || (typeof handler.component !== 'object' && typeof handler.component !== 'function'))) {
815815
logger.error('The following handler doesn\'t have a valid component', { handler })
816816
return
817817
}

0 commit comments

Comments
 (0)