mirror of
https://github.com/flarum/core.git
synced 2025-08-07 17:07:19 +02:00
chore: replace []
with null
This commit is contained in:
@@ -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 (
|
||||
|
@@ -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 [
|
||||
<li className="Dropdown-header">{app.translator.trans('core.forum.search.users_heading')}</li>,
|
||||
|
Reference in New Issue
Block a user