Skip to content

Commit

Permalink
Merge pull request #2086 from nextcloud/backport/2077/stable28
Browse files Browse the repository at this point in the history
[stable28] feat(viewer): allow async handler components
  • Loading branch information
juliusknorr authored Nov 29, 2023
2 parents 0c290d3 + 2ed5ca6 commit f533008
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/viewer-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer-main.js.map

Large diffs are not rendered by default.

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 f533008

Please sign in to comment.