Skip to content

Commit

Permalink
Merge pull request #2077 from nextcloud/pulsejet/async-handler
Browse files Browse the repository at this point in the history
feat(viewer): allow async handler components
  • Loading branch information
juliushaertl committed Nov 28, 2023
2 parents 76510f3 + 061bacb commit 15da8b5
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 15da8b5

Please sign in to comment.