mirror of
https://github.com/flarum/core.git
synced 2025-08-04 07:27:39 +02:00
Fix admin navigation not rendering
Not sure why this started happening now, but the admin navigation dropdown wasn't receiving its children properly. This commit fixes a flaw in our Mithril patch and allows an array of children to be passed in the normal JSX way, rather than as an attribute.
This commit is contained in:
@@ -18,9 +18,9 @@ export default class AdminNav extends Component {
|
||||
return (
|
||||
<SelectDropdown
|
||||
className="AdminNav App-titleControl"
|
||||
buttonClassName="Button"
|
||||
children={this.items().toArray()}
|
||||
/>
|
||||
buttonClassName="Button">
|
||||
{this.items().toArray()}
|
||||
</SelectDropdown>
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user