From 061bacbbf955eb073f0b1d2111ef2913ee59a585 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Mon, 27 Nov 2023 11:41:18 -0800 Subject: [PATCH] feat(viewer): allow async handler components Signed-off-by: Varun Patil --- src/views/Viewer.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Viewer.vue b/src/views/Viewer.vue index aa1afd45b..c76fd0838 100644 --- a/src/views/Viewer.vue +++ b/src/views/Viewer.vue @@ -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 }