diff --git a/js/src/common/components/Dropdown.js b/js/src/common/components/Dropdown.js index bca00ac7f..f2b8c8c26 100644 --- a/js/src/common/components/Dropdown.js +++ b/js/src/common/components/Dropdown.js @@ -37,7 +37,7 @@ export default class Dropdown extends Component { } view(vnode) { - const items = vnode.children ? listItems(vnode.children) : []; + const items = vnode.children ? listItems(vnode.children) : null; const renderItems = this.attrs.lazyDraw ? this.showing : true; return ( diff --git a/js/src/forum/components/UsersSearchSource.tsx b/js/src/forum/components/UsersSearchSource.tsx index 73e081b07..869b0efd5 100644 --- a/js/src/forum/components/UsersSearchSource.tsx +++ b/js/src/forum/components/UsersSearchSource.tsx @@ -39,7 +39,7 @@ export default class UsersSearchResults implements SearchSource { .filter((e, i, arr) => arr.lastIndexOf(e) === i) .sort((a, b) => a.displayName().localeCompare(b.displayName())); - if (!results.length) return []; + if (!results.length) return null; return [
  • {app.translator.trans('core.forum.search.users_heading')}
  • ,