mirror of
https://github.com/flarum/framework.git
synced 2025-05-03 18:14:03 +08:00
fix: remove 'typeof' in 'typeof this' from AdminPage#buildSettingComponent params (#3142)
This commit is contained in:
parent
c9a2094caf
commit
85c285ec4c
@ -201,7 +201,7 @@ export default abstract class AdminPage<CustomAttrs extends IPageAttrs = IPageAt
|
|||||||
* return <p>My cool component</p>;
|
* return <p>My cool component</p>;
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
buildSettingComponent(entry: ((this: typeof this) => Mithril.Children) | SettingsComponentOptions): Mithril.Children {
|
buildSettingComponent(entry: ((this: this) => Mithril.Children) | SettingsComponentOptions): Mithril.Children {
|
||||||
if (typeof entry === 'function') {
|
if (typeof entry === 'function') {
|
||||||
return entry.call(this);
|
return entry.call(this);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user