mirror of
https://github.com/flarum/core.git
synced 2025-07-29 12:40:40 +02:00
Initialise component state in init() instead of constructor
This commit is contained in:
@@ -2,8 +2,8 @@ import Component from 'flarum/Component';
|
||||
import PostStream from 'flarum/components/PostStream';
|
||||
|
||||
export default class DiscussionPage extends Component {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
init() {
|
||||
super.init();
|
||||
|
||||
/**
|
||||
* The discussion that is being viewed.
|
||||
|
Reference in New Issue
Block a user